diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a50b3b132633e6dddaf8a8c26664adf4f4d16277..e757a909259f83ab7a49cbed5dac6b15ab115061 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