ci: add test stage and audit job

This commit is contained in:
Karl-Philipp Wulfert
2019-04-02 13:53:15 +02:00
parent 277118b6e8
commit 92bfe50e1c

View File

@@ -3,7 +3,6 @@ image: registry.gitlab.com/openstapps/projectmanagement/node
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- lib
- node_modules
before_script:
@@ -11,14 +10,18 @@ before_script:
stages:
- build
- test
- deploy
build:
stage: build
script:
- npm run build
except:
- schedules
test:
stage: test
script:
- npm audit
pages:
stage: deploy