ds4/.gitlab-ci.yml

33 lines
490 B
YAML

image: node:latest
stages:
- Build
- Test
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm/
before_script:
- npm ci --cache .npm --prefer-offline
Build:
stage: Build
script:
- npm run build
Lint:
stage: Test
script:
- npm run lint
# Test:
# stage: Test
# cache:
# key: $CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
# paths:
# - node_modules/
# policy: pull
# script:
# - npm test