GitLab CI
Define pipelines in .gitlab-ci.yml with stages and jobs.
| YAML |
|---|
| stages: [build, test, deploy]
build:
stage: build
image: node:20
script:
- npm ci
- npm run build
unit_tests:
stage: test
image: node:20
script:
- npm test
prod_deploy:
stage: deploy
script:
- ./deploy.sh
when: manual
|