Repository navigation
ci: Lint workflow 改为直接运行 npm run check - #21
Merged
Merged
Conversation
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 自带语法检查,这一步单独留着 是为了每个文件输出一行结果,出错时好定位
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
Lint workflow 里有一份写死的测试清单,和
package.json的scripts.check各自维护,已经漂移:relay 脚本同步、发布证据、draft 更新形状、草稿对账这四个测试只在本地跑,CI 从未执行过它们。#20 只补了其中一个。纳入范围
.github/workflows/lint.yml:Run generated check tests那六行写死的清单换成npm run check,步骤改名为Run contract tests。测试清单从此只在package.json里维护。CHANGELOG.md:Unreleased的Changed记一条。没有排除任何本地文件,工作区只有这两个改动。
保留没动的
Lint scripts syntax这一步保留。npm run check自带逐文件语法检查,所以语法检查会跑两遍;单独留着这一步,是为了每个文件输出一行结果,出错时好定位。验证
.env和任何未跟踪文件,接近 CI 的检出),分别用 Node 26、20、24 跑npm run check,全部通过。本机没有 CI 用的 Node 22,20 和 24 把它夹在中间。npm run check、privacy-check.sh --full、git diff --cached --check均通过。lint.yml自身,Lint 会按新的定义运行。Node 22 上的结果以本 PR 的检查为准。