11name : pr
22
3- on : [pull_request]
3+ on :
4+ pull_request :
45
56concurrency :
67 group : ${{ github.workflow }}-${{ github.event.number || github.ref }}
@@ -17,39 +18,31 @@ jobs:
1718 runs-on : ubuntu-latest
1819 steps :
1920 - name : Checkout
20- uses : actions/checkout@v4.2.2
21+ uses : actions/checkout@v6.0.1
2122 with :
2223 fetch-depth : 0
2324 - name : Start Nx Agents
2425 run : npx nx-cloud start-ci-run
2526 - name : Setup Tools
2627 uses : tanstack/config/.github/setup@main
2728 - name : Get base and head commits for `nx affected`
28- 29+ 30+ with :
31+ main-branch-name : v4
2932 - name : Run Tests
3033 run : pnpm run test:pr --parallel=3
3134 - name : Stop Agents
3235 run : npx nx-cloud stop-all-agents
33- - name : Upload coverage to Codecov
34- uses : codecov/codecov-action@v3
3536 format :
3637 name : Format
3738 runs-on : ubuntu-latest
3839 steps :
3940 - name : Checkout
40- uses : actions/checkout@v4.2.2
41+ uses : actions/checkout@v6.0.1
4142 with :
4243 fetch-depth : 0
43- - name : Setup pnpm
44- 45- - name : Setup Node
46- uses : actions/setup-node@v3
47- with :
48- node-version-file : .nvmrc
49- cache : pnpm
50- cache-dependency-path : pnpm-lock.yaml
51- - name : Install dependencies
52- run : pnpm --filter "./packages/**" --filter query --prefer-offline install
44+ - name : Setup Tools
45+ uses : tanstack/config/.github/setup@main
5346 - name : Run prettier
5447 run : pnpm run test:format
5548 test-react-version :
@@ -60,22 +53,15 @@ jobs:
6053 react-version : [17, 18]
6154 steps :
6255 - name : Checkout
63- uses : actions/checkout@v4.2.2
56+ uses : actions/checkout@v6.0.1
6457 with :
6558 fetch-depth : 0
66- ref : ${{ github.head_ref }}
67- repository : ${{github.event.pull_request.head.repo.full_name}}
68- - name : Setup pnpm
69- 70- - uses : actions/setup-node@v3
59+ - name : Setup Tools
60+ uses : tanstack/config/.github/setup@main
61+ - name : Get base and head commits for `nx affected`
62+ 7163 with :
72- node-version-file : .nvmrc
73- cache : pnpm
74- cache-dependency-path : pnpm-lock.yaml
75- - name : Install dependencies
76- run : pnpm --filter "./packages/**" --filter query --prefer-offline install
77- - name : Derive appropriate SHAs for base and head for `nx affected` commands
78- uses : nrwl/nx-set-shas@v2
64+ main-branch-name : v4
7965 - name : Run Tests for React ${{ matrix.react-version }}
8066 uses :
nick-fields/[email protected] 8167 with :
0 commit comments