@@ -22,55 +22,18 @@ jobs:
22
22
23
23
with :
24
24
fetch-depth : 0
25
- - name : Setup pnpm
26
-
27
- - name : Setup Node
28
- uses : actions/setup-node@v3
29
- with :
30
- node-version-file : .nvmrc
31
- cache : pnpm
32
- cache-dependency-path : pnpm-lock.yaml
33
- - name : Install dependencies
34
- run : pnpm --filter "./packages/**" --filter query --prefer-offline install
35
- - name : Get appropriate base and head commits for `nx affected` commands
36
- uses : nrwl/nx-set-shas@v3
37
- with :
38
- main-branch-name : ' main'
39
- - run : |
40
- echo "BASE: ${{ env.NX_BASE }}"
41
- echo "HEAD: ${{ env.NX_HEAD }}"
42
- - name : Start CI Orchestrator
25
+ - name : Start Nx Agents
43
26
run : npx nx-cloud start-ci-run
27
+ - name : Setup Tools
28
+ uses : tanstack/config/.github/setup@main
29
+ - name : Get base and head commits for `nx affected`
30
+
44
31
- name : Run Tests
45
- run : pnpm run test:pr
32
+ run : pnpm run test:pr --parallel=3
46
33
- name : Stop Agents
47
34
run : npx nx-cloud stop-all-agents
48
35
- name : Upload coverage to Codecov
49
36
uses : codecov/codecov-action@v3
50
- agents :
51
- name : Nx Cloud - Agents
52
- runs-on : ubuntu-latest
53
- timeout-minutes : 10
54
- strategy :
55
- matrix :
56
- agent : [1, 2, 3]
57
- steps :
58
- - name : Checkout
59
-
60
- with :
61
- fetch-depth : 0
62
- - name : Setup pnpm
63
-
64
- - name : Setup Node
65
- uses : actions/setup-node@v3
66
- with :
67
- node-version-file : .nvmrc
68
- cache : pnpm
69
- cache-dependency-path : pnpm-lock.yaml
70
- - name : Install dependencies
71
- run : pnpm --filter "./packages/**" --filter query --prefer-offline install
72
- - name : Start Nx Agent ${{ matrix.agent }}
73
- run : npx nx-cloud start-agent
74
37
format :
75
38
name : Format
76
39
runs-on : ubuntu-latest
0 commit comments