Skip to content

Commit c4351fe

Browse files
committed
adjust
1 parent 6ed66ef commit c4351fe

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ on:
88
jobs:
99
test:
1010
runs-on: ubuntu-latest
11+
env:
12+
NODE_OPTIONS: "--max_old_space_size=4096"
1113
strategy:
1214
matrix:
1315
# https://nodejs.org/en/about/previous-releases
1416
node-version: [20, 22, 24]
1517
steps:
1618
- name: Checkout repository
1719
uses: actions/checkout@v4
18-
- name: Setup Node.js
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: ${{ matrix.node-version }}
2220
- name: Install pnpm
2321
uses: pnpm/action-setup@v4
2422
with:
2523
version: 10.13.1
26-
run_install: false # do manual install to avoid heap memory errors
24+
run_install: false
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'pnpm'
2730
- name: Install dependencies
28-
env:
29-
NODE_OPTIONS: --max_old_space_size=4096
30-
# lower parallelism to save RAM
31-
run: pnpm install --frozen-lockfile --network-concurrency=1
31+
run: pnpm install
3232
- name: Build all packages
3333
run: pnpm build
3434
- name: Run linter

0 commit comments

Comments
 (0)