Skip to content

Commit

Permalink
chore(ci): backend jest config (#6772)
Browse files Browse the repository at this point in the history
* fix: add ci mode, ci mode runs test in band to avoid context switch

* fix: ci crashing due to oom

* fix: increase ci worker count

* Revert "fix: ci crashing due to oom"

This reverts commit dff5171.

* feat: set workeridlememorylimit to 0.4

* feat: set workeridlememorylimit to 0.2
  • Loading branch information
KenLSM authored Oct 5, 2023
1 parent d8f900d commit 7d99666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
path: '**/node_modules'
key: ${{ runner.OS }}-node-modules-${{ hashFiles('**/package-lock.json') }}
- run: npm ci --prefix serverless/virus-scanner
- run: npm run test:backend
- run: npm run test:backend:ci
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: Coveralls
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"postinstall": "npm run postinstall:frontend && npm run postinstall:shared",
"test": "npm run test:backend && npm run test:frontend",
"test:backend": "env-cmd -f __tests__/setup/.test-env jest",
"test:backend:ci": "env-cmd -f __tests__/setup/.test-env jest --maxWorkers=2 --logHeapUsage --workerIdleMemoryLimit=0.2",
"test:backend:watch": "env-cmd -f __tests__/setup/.test-env jest --watch",
"test:frontend": "npm --prefix frontend test",
"test:e2e-v2": "npm run build && npx playwright test",
Expand Down

0 comments on commit 7d99666

Please sign in to comment.