26 lines
843 B
YAML
26 lines
843 B
YAML
image: node:20
|
|
variables:
|
|
CI: 'true'
|
|
|
|
# Main job
|
|
CI:
|
|
interruptible: true
|
|
only:
|
|
- main
|
|
- merge_requests
|
|
script:
|
|
# This enables task distribution via Nx Cloud
|
|
# Run this command as early as possible, before dependencies are installed
|
|
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
|
|
# Uncomment this line to enable task distribution
|
|
# - npx nx start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"
|
|
|
|
- npm ci
|
|
|
|
# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
|
|
# - npx nx-cloud record -- echo Hello World
|
|
- npx nx run-many -t lint test build
|
|
# Nx Cloud recommends fixes for failures to help you get CI green faster. Learn more: https://nx.dev/ci/features/self-healing-ci
|
|
|
|
after_script:
|
|
- npx nx fix-ci
|