ci: add focused pull request validation - #175
Open
squarepots wants to merge 8 commits into
Open
squarepots wants to merge 8 commits into
squarepots wants to merge 8 commits into
Conversation
squarepots
marked this pull request as ready for review
September 18, 2026 15:00
Author
|
@Lampese 这个 PR 的 workflow 已经被 GitHub 识别,但当前 fork PR run 停在 我在最后一轮 review 中也修正了 Rust formatting step:现在使用 当前 head: 麻烦在 Actions 中 Approve and run,让这批 PR 可以拿到实际 CI 结果。 @Lampese GitHub recognizes the workflow in this PR, but the current fork PR run is stopped at During the final review I also adjusted the Rust formatting step to use Current head: Please Approve and run the workflow in Actions so this PR batch can get an actual CI result. |
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.
本 PR 为 pull request 增加只读验证 workflow,避免回归等到 release workflow 才发现。
pnpm build和聚合的pnpm test。pnpm test使用 Node 内置 test runner 的tests/*.test.*发现约定,覆盖.test.ts和.test.mjs,因此 browser-runtime、web-boundary、backup-passphrase、warmup-policy、release-source 等 focused suite 合并进来后无需再维护手写列表。cargo test --locked。cargo check --locked,覆盖 platform-gated Tauri/Rust 路径。pull_request、同一 PR 的旧运行会被取消,并且只授予contents: read;不包含 release、签名或发布权限。验证
pnpm install --frozen-lockfile:通过pnpm test:当前 checkout 的 13 项通过;聚合命令按文件名发现后续 focused suitepnpm build:通过cargo test --locked --manifest-path src-tauri/Cargo.toml:50 项通过cargo check --locked --manifest-path src-tauri/Cargo.toml:通过git diff --check:通过GitHub 已识别该 workflow;当前 fork PR 的远程运行在 job 启动前处于
action_required,需要仓库维护者批准 public-fork workflow 后才会产生 CI 结果。Closes #164
This PR adds read-only pull-request validation so regressions are caught before the release workflow.
pnpm buildplus the aggregatepnpm testcommand.pnpm testuses Node’s built-in test runner with thetests/*.test.*filename convention, covering both.test.tsand.test.mjs. The browser-runtime, web-boundary, backup-passphrase, warmup-policy, and release-source focused suites will therefore be included when their existing PR branches are combined without another hand-maintained list.cargo test --locked.cargo check --lockedto cover platform-gated Tauri/Rust paths.pull_request, cancels older runs for the same PR, and grants onlycontents: read; it has no release, signing, or publishing permissions.Validation
pnpm install --frozen-lockfile: passedpnpm test: 13 current-checkout tests passed; the aggregate discovers later focused suites by filenamepnpm build: passedcargo test --locked --manifest-path src-tauri/Cargo.toml: 50 passedcargo check --locked --manifest-path src-tauri/Cargo.toml: passedgit diff --check: passedGitHub recognizes the workflow. Because this is a fork pull request, the remote run is currently
action_requiredbefore jobs start and requires repository-maintainer approval of the public-fork workflow before CI results can appear.Closes #164