From 89576392b7f64326a614d8f107ca373dc0e7163c 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:30:45 +0200 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ee52b5..ebe94fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,22 @@ image: node:latest stages: # List of stages for jobs, and their order of execution + - npm - build - test +npm: + stage: npm + script: + - npm ci + cache: + paths: + - node_modules/ + build-job: # This job runs in the build stage, which runs first. stage: build script: - - npm ci + - npm run build unit-test-job: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. -- GitLab