11name : pr
22
3- on : [pull_request]
3+ on :
4+ pull_request :
45
56concurrency :
67 group : ${{ github.workflow }}-${{ github.event.number || github.ref }}
@@ -17,13 +18,12 @@ jobs:
1718 name : Nx Cloud - Main Job
1819 runs-on : ubuntu-latest
1920 steps :
20- - uses : actions/checkout@v3
21+ - name : Checkout
22+ uses : actions/checkout@v4.2.2
2123 with :
2224 fetch-depth : 0
2325 - name : Setup pnpm
24- uses : pnpm/action-setup@v2.4.1
25- with :
26- version : 8
26+ uses : pnpm/action-setup@v4.1.0
2727 - name : Setup Node
2828 uses : actions/setup-node@v3
2929 with :
4242 - name : Start CI Orchestrator
4343 run : npx nx-cloud start-ci-run
4444 - name : Run Tests
45- uses : nick-fields/retry@v2.8.3
46- with :
47- timeout_minutes : 5
48- max_attempts : 3
49- command : npx nx affected --targets=test:eslint,test:lib,test:types,test:build
45+ run : pnpm run test:pr
5046 - name : Stop Agents
5147 run : npx nx-cloud stop-all-agents
5248 - name : Upload coverage to Codecov
@@ -59,13 +55,12 @@ jobs:
5955 matrix :
6056 agent : [1, 2, 3]
6157 steps :
62- - uses : actions/checkout@v3
58+ - name : Checkout
59+ uses : actions/checkout@v4.2.2
6360 with :
6461 fetch-depth : 0
6562 - name : Setup pnpm
66- uses : pnpm/action-setup@v2.4.1
67- with :
68- version : 8
63+ uses : pnpm/action-setup@v4.1.0
6964 - name : Setup Node
7065 uses : actions/setup-node@v3
7166 with :
@@ -80,13 +75,12 @@ jobs:
8075 name : Format
8176 runs-on : ubuntu-latest
8277 steps :
83- - uses : actions/checkout@v3
78+ - name : Checkout
79+ uses : actions/checkout@v4.2.2
8480 with :
8581 fetch-depth : 0
8682 - name : Setup pnpm
87- uses : pnpm/action-setup@v2.4.1
88- with :
89- version : 8
83+ uses : pnpm/action-setup@v4.1.0
9084 - name : Setup Node
9185 uses : actions/setup-node@v3
9286 with :
@@ -101,14 +95,14 @@ jobs:
10195 name : ' Test React 17'
10296 runs-on : ubuntu-latest
10397 steps :
104- - uses : actions/checkout@v3
98+ - name : Checkout
99+ uses : actions/checkout@v4.2.2
105100 with :
106101 fetch-depth : 0
107102 ref : ${{ github.head_ref }}
108103 repository : ${{github.event.pull_request.head.repo.full_name}}
109- - uses : pnpm/action-setup@v2.4.1
110- with :
111- version : 8
104+ - name : Setup pnpm
105+ uses : pnpm/action-setup@v4.1.0
112106 - uses : actions/setup-node@v3
113107 with :
114108 node-version-file : .nvmrc
0 commit comments