Skip to content

Commit 9ce2e8f

Browse files
committed
fix: Increase Node memory limit for CI tests
- Set NODE_OPTIONS --max_old_space_size=4096 (4GB) - Remove --runInBand (was causing OOM with serial execution) - Parallel execution with more memory should work better
1 parent 2f681e2 commit 9ce2e8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
run: npm run build
3333

3434
- name: Run tests
35-
run: npm test -- --runInBand
35+
run: NODE_OPTIONS="--max_old_space_size=4096" npm test
3636

3737
- name: Check test coverage
38-
run: npm run test:coverage -- --runInBand
38+
run: NODE_OPTIONS="--max_old_space_size=4096" npm run test:coverage
3939

4040
- name: Upload coverage to Codecov
4141
if: matrix.node-version == '20.x'

0 commit comments

Comments
 (0)