@@ -22,55 +22,18 @@ jobs:
2222 uses : actions/checkout@v4.2.2
2323 with :
2424 fetch-depth : 0
25- - name : Setup pnpm
26- uses : pnpm/action-setup@v4.1.0
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
4326 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+ uses : nrwl/nx-set-shas@v4.1.2
4431 - name : Run Tests
45- run : pnpm run test:pr
32+ run : pnpm run test:pr --parallel=3
4633 - name : Stop Agents
4734 run : npx nx-cloud stop-all-agents
4835 - name : Upload coverage to Codecov
4936 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- uses : actions/checkout@v4.2.2
60- with :
61- fetch-depth : 0
62- - name : Setup pnpm
63- uses : pnpm/action-setup@v4.1.0
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
7437 format :
7538 name : Format
7639 runs-on : ubuntu-latest
0 commit comments