Skip to content

ci: Lint workflow 加跑 test-css-declaration-count.mjs,并在自身改动时触发 - #20

Merged
leether merged 1 commit into
mainfrom
ci/run-css-declaration-count-in-lint
Nov 25, 2026
Merged

leether merged 1 commit into
mainfrom
ci/run-css-declaration-count-in-lint

Conversation

@leether

@leether leether commented Nov 25, 2026

Copy link
Copy Markdown
Owner

背景

PR #19 新增的 harness/test-css-declaration-count.mjs 只接入了 npm run check。Lint workflow 的测试列表是写死的,CI 不会跑到它。

纳入范围

  • .github/workflows/lint.yml
    • Run generated check tests 增加 node harness/test-css-declaration-count.mjs
    • push / pull_request 的 paths 增加 .github/workflows/lint.yml。原先只改 workflow 时 CI 不会运行,这次改动也就无法在合并前被验证;加上之后本 PR 会实际跑一遍新的 workflow。
  • CHANGELOG.md:在 fix: position/filter 样式统计只在标签内匹配,修正英文正文子串误报 #19 那一条末尾补上「已接入 CI」。

没有排除任何本地文件,工作区只有这两个改动。

验证

  • 本地按 workflow 的步骤逐条重放通过(Node v26)。CI 用的是 Node 22,由本 PR 的 Lint 检查覆盖。
  • npm run check、privacy-check.sh --full、git diff --cached --check 均通过。

没有做的

Lint workflow 仍然是一份写死的测试子集。test-relay-script-sync-contract、test-publish-evidence-contract、test-draft-update-shape、test-reconcile-wechat-drafts 这四个依旧只在本地 npm run check 里跑,本 PR 没有改动这一点。

PR #19 新增的 test-css-declaration-count.mjs 只接入了 npm run check,
Lint workflow 的测试列表是写死的,CI 并不会跑到它。

- Run generated check tests 增加该测试
- push / pull_request 的 paths 增加 .github/workflows/lint.yml:
  否则只改 workflow 时 CI 不会运行,这次改动也无法在合并前被验证
@leether
leether merged commit 43ae42f into main Nov 25, 2026
2 checks passed
@leether
leether deleted the ci/run-css-declaration-count-in-lint branch November 25, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant