...
 
Commits (4)
image: node:10-alpine
stages:
- dependencies
- test
- transpilation
dependencies:
stage: dependencies
script:
- yarn
artifacts:
paths:
- node_modules # allow passing node_modules to next stages
expire_in: 2 hours # we only need them for 2 hours
typescript:
stage: transpilation
script:
- npx tsc
artifacts:
paths:
- lib
expire_in: 2 hours
unit test:
stage: test
script:
- npm test
coverage: '/^All files[^|]*\|[^|]*\s+([\d\.]+)/'
artifacts:
paths:
- coverage
expire_in: 2 hours