From a1a4748c582ffd942e0c520edf6cda8ea8f75c0d Mon Sep 17 00:00:00 2001 From: lanrtop Date: Sat, 4 Jul 2026 07:58:16 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20pr-check=20lint=20=E6=AD=A5=E9=AA=A4?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E5=BF=85?= =?UTF-8?q?=E6=8C=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pnpm 的 --if-present 只对 run 子命令有效,pnpm lint --if-present 把 lint 当外部命令执行报 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL(本地已复现)。 项目无 lint script,删除该步骤;补 pnpm test 对齐基线档定义 (push CI = typecheck + vitest),tsc --noEmit 改用 typecheck script。 --- .gitea/workflows/pr-check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/pr-check.yml b/.gitea/workflows/pr-check.yml index f4f26e1..ac2300f 100644 --- a/.gitea/workflows/pr-check.yml +++ b/.gitea/workflows/pr-check.yml @@ -1,4 +1,4 @@ -# 前端类型检查(每次 push master 触发) +# 前端类型检查 + 单元测试(每次 push master 触发) name: Push Check on: @@ -22,5 +22,5 @@ jobs: cache: 'pnpm' - run: pnpm install --frozen-lockfile - - run: pnpm tsc --noEmit - - run: pnpm lint --if-present + - run: pnpm typecheck + - run: pnpm test