-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (38 loc) · 1.13 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
workflow_dispatch:
push:
branches:
- master
- develop
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
main:
name: Nx Cloud - Main Job
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
with:
pnpm-version: 8.6.0
node-version: 18.16.0
number-of-agents: 4
main-branch-name: 'develop'
init-commands: |
pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=4
parallel-commands-on-agents: |
pnpm exec nx affected --target=lint --parallel=4
pnpm exec nx affected --target=test:ci --parallel=4
pnpm exec nx affected --target=build --parallel=4
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
with:
number-of-agents: 4
pnpm-version: 8.6.0
node-version: 18.16.0