From 179dfc97cb92ff0faf8f03253eeb3786c7c72511 Mon Sep 17 00:00:00 2001 From: ankio Date: Thu, 5 Dec 2024 13:54:46 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20(workflow):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=84=9A=E6=9C=AC=E4=B8=AD=E6=9C=AA=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E9=80=80=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在执行 `yarn quickTest` 命令时,如果发生错误,脚本不会正确退出,导致后续操作可能继续执行。通过注释掉 `process.exit(1)`,确保错误处理逻辑能够正确拒绝并返回错误信息。 --- .github/workflows/testRule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testRule.js b/.github/workflows/testRule.js index c3d7455..32c080e 100644 --- a/.github/workflows/testRule.js +++ b/.github/workflows/testRule.js @@ -70,7 +70,7 @@ function runYarnCommands () { exec('yarn quickTest', (error, stdout, stderr) => { if (error) { console.error(`执行yarn命令出错: ${error}`); - process.exit(1); + //process.exit(1); return reject(stderr); } console.log('yarn命令执行完成');