fix(ci): 修复 Gitea Actions 测试卡死问题
CI / test (20.x) (push) Canceled after 0s
CI / test (22.x) (push) Canceled after 0s
CI / test (24.x) (push) Canceled after 0s
CI / test (18.x) (push) Canceled after 3s

- 移除 --coverage(CI 环境 ts-jest 覆盖率内存爆炸)
- 添加 --forceExit --maxWorkers=2 --no-cache
- 添加 NODE_OPTIONS=--max-old-space-size=4096 防 OOM
This commit is contained in:
tianhao
2026-07-25 11:33:52 +08:00
parent 9a6cd33d90
commit 32a3bdf86e
+3 -1
View File
@@ -34,7 +34,9 @@ jobs:
continue-on-error: true continue-on-error: true
- name: Run tests - name: Run tests
run: npm test run: npx jest --forceExit --maxWorkers=2 --no-cache
env:
NODE_OPTIONS: --max-old-space-size=4096
- name: Build - name: Build
run: npm run build run: npm run build