mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-12 17:26:22 +00:00
44 lines
508 B
YAML
44 lines
508 B
YAML
image: node:lts-alpine
|
|
|
|
cache:
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
paths:
|
|
- lib
|
|
- node_modules
|
|
|
|
before_script:
|
|
- npm install
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
- deploy
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- npm run build
|
|
|
|
audit:
|
|
stage: test
|
|
script:
|
|
- npm audit
|
|
|
|
test:
|
|
dependencies:
|
|
- build
|
|
stage: test
|
|
script:
|
|
- npm test
|
|
|
|
pages:
|
|
stage: deploy
|
|
script:
|
|
- npm run documentation
|
|
- mv docs public
|
|
only:
|
|
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
|
|
artifacts:
|
|
paths:
|
|
- public
|