-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 930 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
main:
name: Nx Cloud - Main Job
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 3
init-commands: |
yarn nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
parallel-commands: |
yarn nx-cloud record -- yarn nx workspace-lint
yarn nx-cloud record -- yarn nx format:check
yarn nx-cloud record -- yarn check-lockfile
parallel-commands-on-agents: |
yarn nx affected --target=lint --exclude=workspace --parallel=3
yarn nx affected --target=test --exclude=workspace --parallel=3 --ci --code-coverage
yarn nx affected --target=build,check-dependencies --exclude=workspace --parallel=3
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 3