OpenMediaCenter/.gitlab-ci.yml

46 lines
601 B
YAML

image: node:latest
stages:
- prepare
- build
- test
cache:
paths:
- node_modules/
include:
- template: SAST.gitlab-ci.yml
prepare:
stage: prepare
script:
- npm install --progress=false
build:
stage: build
script:
- npm run build
artifacts:
expire_in: 7 days
paths:
- build/
test:
stage: test
script:
- CI=true npm run test
artifacts:
reports:
junit:
- ./junit.xml
coverage:
stage: test
script:
- CI=true npm run coverage
artifacts:
reports:
cobertura:
- ./coverage/cobertura-coverage.xml