Repository navigation
在 CI 的 macOS 机器上运行原生测试和界面测试 - #12
Merged
Merged
Conversation
新增 Mac native tests:在 macOS 15 上运行 npm test(含原生测试)和 Mac 界面测试。三处 80 GiB 磁盘保护只在本机生效,托管 CI 机器跳过。贡献指南同步说明。
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.
Change / 改动
此前 CI 只在 Linux 上跑
npm test,所有 Mac 原生测试都因process.platform !== 'darwin'被跳过;Mac 界面测试(tests/mac-localization-ui.js)不在任何检查里,只能在贡献者本机运行,并且会打开窗口、抢占焦点。Mac native tests:在macos-15(Xcode 26.3)上运行npm test(包括语言资源原生测试和设置窗口位置测试),再运行node --test tests/mac-localization-ui.js。CI环境变量存在时跳过)。测试断言本身不变。贡献指南.md中英文同步说明 CI 现在运行这些测试,以及在 macOS 上运行npm test会短暂打开测试窗口。现有
Core tests和Mac universal build不变。新检查是否设为合并必需,另行决定,本 PR 不改仓库规则集。Tests / 测试
node --check通过,工作流 YAML 解析通过。