From 32a3bdf86eb998fdda257f88cc20d7a6ada9c92e Mon Sep 17 00:00:00 2001 From: tianhao Date: Sat, 25 Jul 2026 11:33:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D=20Gitea=20Actions?= =?UTF-8?q?=20=E6=B5=8B=E8=AF=95=E5=8D=A1=E6=AD=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 --coverage(CI 环境 ts-jest 覆盖率内存爆炸) - 添加 --forceExit --maxWorkers=2 --no-cache - 添加 NODE_OPTIONS=--max-old-space-size=4096 防 OOM --- .gitea/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 26dd42c..4fb0fc9 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -34,7 +34,9 @@ jobs: continue-on-error: true - name: Run tests - run: npm test + run: npx jest --forceExit --maxWorkers=2 --no-cache + env: + NODE_OPTIONS: --max-old-space-size=4096 - name: Build run: npm run build