From 17a07b3c8f97b7c494d89a3571e13dff4277aa98 Mon Sep 17 00:00:00 2001 From: Erik Borgeteien Hansen <erikbhan@stud.ntnu.no> Date: Thu, 28 Apr 2022 14:01:17 +0200 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 56 ++++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a50b3b1..e757a90 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,41 +1,43 @@ image: node:16 stages: - - setup +# - setup - test -variables: - npm_config_cache: "$CI_PROJECT_DIR/.npm" +#variables: +# npm_config_cache: "$CI_PROJECT_DIR/.npm" # Define a hidden job to be used with extends # Better than default to avoid activating cache for all jobs -.dependencies_cache: - cache: - key: - files: - - package-lock.json - paths: - - .npm - policy: pull +#.dependencies_cache: +# cache: +# key: +# files: +# - package-lock.json +# paths: +# - .npm +# policy: pull -setup: - stage: setup - script: - - npm ci - extends: .dependencies_cache - cache: - policy: pull-push - artifacts: - expire_in: 3 days #delete cache after 3 days to conserve space - paths: - - node_modules +#setup: +# stage: setup +# script: +# - npm ci +# extends: .dependencies_cache +# cache: +# policy: pull-push +# artifacts: +# expire_in: 3 days #delete cache after 3 days to conserve space +# paths: +# - node_modules -lint_test: +test: stage: test script: + - npm ci - npm run lint - -unit_test: - stage: test - script: - npm run test:unit + +#unit_test: +# stage: test +# script: +# - npm run test:unit -- GitLab