From afaf6e54787632afe0c417b4201ef363444299e8 Mon Sep 17 00:00:00 2001 From: leether Date: Wed, 25 Nov 2026 19:58:16 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20Lint=20workflow=20=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=BF=90=E8=A1=8C=20npm=20run=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lint workflow 的测试清单是写死的,和 package.json 里的 scripts.check 各自维护,已经漂移:relay 脚本同步、发布证据、draft 更新形状、草稿对账 四个测试只在本地跑,CI 从未执行过它们。 - Run generated check tests 换成 npm run check,步骤改名为 Run contract tests - Lint scripts syntax 保留:npm run check 自带语法检查,这一步单独留着 是为了每个文件输出一行结果,出错时好定位 --- .github/workflows/lint.yml | 11 +++-------- CHANGELOG.md | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c6bbe4a..d88a855 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,11 +40,6 @@ jobs: node --check "$f" && echo "✅ $f" || exit 1 done - - name: Run generated check tests - run: | - node harness/test-code-generator-contract.mjs - node harness/test-preflight-fixtures.mjs - node harness/test-css-declaration-count.mjs - node harness/test-orchestrator-command-contract.mjs - node harness/test-self-report-no-write.mjs - node harness/run-generated-check-tests.mjs + # 测试清单只在 package.json 的 scripts.check 里维护,这里不再另写一份,以免两边漂移。 + - name: Run contract tests + run: npm run check diff --git a/CHANGELOG.md b/CHANGELOG.md index fec6ac1..5ea4384 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ - **自创生治理**:`self_report`/`code-generator` 新生成规则默认进入 `observation_checks`,必须同时生成配套测试、evolution audit 和 rollback snapshot;观察层失败只报告不阻断 - **发布治理**:新增 staged-file manifest、CI/merge decision ladder、release source-of-truth、参数契约矩阵和 self_report no-write 验证路径 +- **CI 测试来源单一化**:Lint workflow 的契约测试改为直接运行 `npm run check`,不再另写一份测试清单。此前两份清单各自维护,relay 脚本同步、发布证据、draft 更新形状、草稿对账这四个测试一直没进 CI ## [0.4.0] - 2026-06-07