Skip to content

Commit 6fa0c84

Browse files
authoredJun 29, 2024··
ci: Optimise Nx workflow (#797)
* Try moving nx command * Testing * pnpm dlx * Undo pnpm dlx * Use shared github action * Benchmark with lockfile change * Remove parallel=3 * Try linux-large-js * Back to parallel 3 and medium * Remove require-await
1 parent 3f1dbed commit 6fa0c84

File tree

5 files changed

+38
-52
lines changed

5 files changed

+38
-52
lines changed
 

‎.github/workflows/ci.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,11 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@v4
2727
with:
28-
fetch-depth: '0'
29-
- name: Setup pnpm
30-
uses: pnpm/action-setup@v4
31-
- name: Setup Node
32-
uses: actions/setup-node@v4
33-
with:
34-
node-version-file: .nvmrc
35-
cache: pnpm
28+
fetch-depth: 0
3629
- name: Start Nx Agents
3730
run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
38-
- name: Install dependencies
39-
run: pnpm install --frozen-lockfile --prefer-offline
31+
- name: Setup Tools
32+
uses: tanstack/config/.github/setup@main
4033
- name: Run Tests
4134
run: pnpm run test:ci --parallel=3
4235
- name: Stop Nx Agents

‎.github/workflows/pr.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,10 @@ jobs:
2323
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
26-
- name: Setup pnpm
27-
uses: pnpm/action-setup@v4
28-
- name: Setup Node
29-
uses: actions/setup-node@v4
30-
with:
31-
node-version-file: .nvmrc
32-
cache: pnpm
3326
- name: Start Nx Agents
3427
run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
35-
- name: Install dependencies
36-
run: pnpm install --frozen-lockfile --prefer-offline
28+
- name: Setup Tools
29+
uses: tanstack/config/.github/setup@main
3730
- name: Get base and head commits for `nx affected`
3831
uses: nrwl/nx-set-shas@v4
3932
with:

‎.nx/workflows/dynamic-changesets.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
distribute-on:
2-
small-changeset: 8 linux-medium-js
3-
medium-changeset: 10 linux-medium-js
4-
large-changeset: 12 linux-medium-js
2+
small-changeset: 3 linux-medium-js
3+
medium-changeset: 6 linux-medium-js
4+
large-changeset: 10 linux-medium-js

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"react": "^18.3.1",
6262
"react-dom": "^18.3.1",
6363
"rimraf": "^5.0.5",
64-
"sherif": "^0.8.4",
64+
"sherif": "^0.9.0",
6565
"solid-js": "^1.7.8",
6666
"typedoc": "^0.25.13",
6767
"typedoc-plugin-markdown": "^4.0.3",

‎pnpm-lock.yaml

+29-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.