Skip to content
Snippets Groups Projects
.gitlab-ci.yml 720 B
Newer Older
image: node:16
stages:
#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
#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
  stage: test
    - npm run lint
    - npm run test:unit

#unit_test:
#  stage: test
#  script:
#    - npm run test:unit