From 2516a3a36b01861e593f199d6cb1cb97604d26b8 Mon Sep 17 00:00:00 2001 From: tianhao Date: Sat, 8 Aug 2026 15:33:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D=20YAML=20?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=A4=B1=E8=B4=A5=E5=AF=BC=E8=87=B4=20CI=20?= =?UTF-8?q?=E4=B8=8D=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 根因:'Run tests (coverage gate: lines >= 95%)' 未加引号, plain scalar 中 'coverage gate:' 的冒号被解析为嵌套 mapping, 整个 workflow 解析失败 → push 不触发(v0.5.0 引入) - 修复:name 加单引号;runs-on 恢复 debian-latest(runner 实际标签) - publish.yml 同步恢复 runs-on - 验证:两个文件 YAML 解析全部通过 --- .gitea/workflows/ci.yml | 4 ++-- .gitea/workflows/publish.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 80ab421..e8420bd 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: debian-latest strategy: matrix: @@ -32,7 +32,7 @@ jobs: - name: Lint run: npm run lint - - name: Run tests (coverage gate: lines >= 95%) + - name: 'Run tests (coverage gate: lines >= 95%)' run: npx jest --forceExit --maxWorkers=2 --no-cache --coverage env: NODE_OPTIONS: --max-old-space-size=4096 diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 6695479..4bc1991 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -6,7 +6,7 @@ on: jobs: publish: - runs-on: ubuntu-latest + runs-on: debian-latest steps: - uses: actions/checkout@v4