From 2325b532e3bae3b122e09a327c0c91d20d7eadbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20Karevold=20Gr=C3=B8nhaug?= <jakobkg@stud.ntnu.no> Date: Mon, 17 Apr 2023 14:34:38 +0200 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ebe94fa..b7e86ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,13 +5,21 @@ stages: # List of stages for jobs, and their order of execution - build - test +# Cache modules in between jobs +cache: + key: + files: + - package-lock.json + paths: + - .npm/ + +before_script: + - npm ci --cache .npm --prefer-offline + npm: stage: npm script: - npm ci - cache: - paths: - - node_modules/ build-job: # This job runs in the build stage, which runs first. stage: build -- GitLab