Skip to content

Commit 0f474c4

Browse files
committed
fix: Run CI tests in serial to avoid worker termination
- Add --runInBand --maxWorkers=1 to prevent Jest worker crashes - Fixes SIGTERM errors in GitHub Actions environment - Tests pass but workers were being terminated after 332s
1 parent 4dbf3b9 commit 0f474c4

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 -- --runInBand --maxWorkers=1
3636

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

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

0 commit comments

Comments
 (0)