Skip to content
Snippets Groups Projects
Commit 439bcbf5 authored by Erik Borgeteien Hansen's avatar Erik Borgeteien Hansen
Browse files

Merge branch 'cicd' into 'main'

Remove caching because we don't pay

See merge request !55
parents 73d20459 17a07b3c
No related branches found
No related tags found
1 merge request!55Remove caching because we don't pay
Pipeline #177686 passed
image: node:16 image: node:16
stages: stages:
- setup # - setup
- test - test
variables: #variables:
npm_config_cache: "$CI_PROJECT_DIR/.npm" # npm_config_cache: "$CI_PROJECT_DIR/.npm"
# Define a hidden job to be used with extends # Define a hidden job to be used with extends
# Better than default to avoid activating cache for all jobs # Better than default to avoid activating cache for all jobs
.dependencies_cache: #.dependencies_cache:
cache: # cache:
key: # key:
files: # files:
- package-lock.json # - package-lock.json
paths: # paths:
- .npm # - .npm
policy: pull # policy: pull
setup: #setup:
stage: setup # stage: setup
script: # script:
- npm ci # - npm ci
extends: .dependencies_cache # extends: .dependencies_cache
cache: # cache:
policy: pull-push # policy: pull-push
artifacts: # artifacts:
expire_in: 3 days #delete cache after 3 days to conserve space # expire_in: 3 days #delete cache after 3 days to conserve space
paths: # paths:
- node_modules # - node_modules
lint_test: test:
stage: test stage: test
script: script:
- npm ci
- npm run lint - npm run lint
unit_test:
stage: test
script:
- npm run test:unit - npm run test:unit
#unit_test:
# stage: test
# script:
# - npm run test:unit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment