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

Merge branch 'main' into remove-log-from-main

parents a0326be0 439bcbf5
No related branches found
No related tags found
1 merge request!56Remove log from main
Pipeline #177690 passed with stage
in 46 seconds
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
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