ci: add focused pull request validation - #188
Merged
Merged
Conversation
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;当前已验证的 PR 运行(run 35448726405)已完成,Frontend、Rust tests and format、macOS 和 Windows 四个 job 均通过。
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. The currently verified PR run (35448726405) completed successfully; Frontend, Rust tests and format, and the macOS and Windows platform compile jobs all passed.
Closes #164
Restores #175 after the source fork was accidentally deleted.