28 lines
407 B
YAML
28 lines
407 B
YAML
|
image: node:latest
|
||
|
|
||
|
variables:
|
||
|
NODE_ENV: "ci"
|
||
|
|
||
|
stages:
|
||
|
- build
|
||
|
- test
|
||
|
|
||
|
cache:
|
||
|
paths:
|
||
|
- node_modules/
|
||
|
|
||
|
install_dependencies:
|
||
|
stage: build
|
||
|
script:
|
||
|
- yarn install
|
||
|
artifacts:
|
||
|
paths:
|
||
|
- node_modules/
|
||
|
|
||
|
testing_testing:
|
||
|
stage: test
|
||
|
script:
|
||
|
- ./node_modules/.bin/sequelize db:migrate
|
||
|
- ./node_modules/.bin/sequelize db:seed:all
|
||
|
- yarn test --ci --collectCoverage=true
|