mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-13 01:36:22 +00:00
55 lines
686 B
YAML
55 lines
686 B
YAML
image: registry.gitlab.com/openstapps/projectmanagement/node
|
|
|
|
cache:
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
paths:
|
|
- node_modules
|
|
|
|
before_script:
|
|
- npm install
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
- audit
|
|
- deploy
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- npm run build
|
|
artifacts:
|
|
paths:
|
|
- lib
|
|
|
|
audit:
|
|
allow_failure: true
|
|
except:
|
|
- schedules
|
|
script:
|
|
- npm audit
|
|
stage: audit
|
|
|
|
scheduled-audit:
|
|
only:
|
|
- schedules
|
|
script:
|
|
- npm audit
|
|
stage: audit
|
|
|
|
unit:
|
|
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
|