Skip to content

Commit eee4405

Browse files
authored
ci(v4): update test command in GitHub Actions workflow to use pnpm (#9524)
1 parent 7e5e9f5 commit eee4405

File tree

1 file changed

+6
-43
lines changed

1 file changed

+6
-43
lines changed

.github/workflows/pr.yml

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -22,55 +22,18 @@ jobs:
2222
uses: actions/[email protected]
2323
with:
2424
fetch-depth: 0
25-
- name: Setup pnpm
26-
uses: pnpm/[email protected]
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/[email protected]
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/[email protected]
60-
with:
61-
fetch-depth: 0
62-
- name: Setup pnpm
63-
uses: pnpm/[email protected]
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

Comments
 (0)