Skip to content

Commit 48cc38c

Browse files
committed
fix: Force serial test execution in CI to prevent OOM
- Use --maxWorkers=1 in CI to run tests serially - Prevents 'heap out of memory' errors in limited CI environment - Local development still uses Jest config maxWorkers: '50%' - Trade-off: CI slower but stable vs parallel but OOM
1 parent d1d9b64 commit 48cc38c

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
35+
run: npm test -- --maxWorkers=1
3636

3737
- name: Check test coverage
38-
run: npm run test:coverage
38+
run: npm run test:coverage -- --maxWorkers=1
3939

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

0 commit comments

Comments
 (0)