Skip to content

Commit d0178e7

Browse files
committed
chore: add GitHub Workflow
1 parent cde4107 commit d0178e7

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
# Needed for nx-set-shas within nx-cloud-main.yml, when run on the main branch
10+
permissions:
11+
actions: read
12+
contents: read
13+
14+
jobs:
15+
main:
16+
name: Nx Cloud - Main Job
17+
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.1
18+
with:
19+
main-branch-name: main
20+
number-of-agents: 3
21+
init-commands: |
22+
yarn nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
23+
parallel-commands: |
24+
yarn nx-cloud record -- yarn nx format:check
25+
parallel-commands-on-agents: |
26+
yarn nx affected --target=lint --parallel=3
27+
yarn nx affected --target=test --parallel=3 --ci --code-coverage
28+
yarn nx affected --target=build --parallel=3
29+
30+
agents:
31+
name: Nx Cloud - Agents
32+
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.1
33+
with:
34+
number-of-agents: 3

0 commit comments

Comments
 (0)