Skip to content

在 CI 的 macOS 机器上运行原生测试和界面测试 - #12

Merged
sudoHG merged 1 commit into
mainfrom
ci/mac-native-tests
Oct 4, 2026
Merged

sudoHG merged 1 commit into
mainfrom
ci/mac-native-tests

Conversation

@sudoHG

@sudoHG sudoHG commented Oct 4, 2026

Copy link
Copy Markdown
Owner

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。
  • 三处「可用空间不足 80 GiB 时停止」的检查用于保护贡献者本机磁盘,改为只在本机生效(CI 环境变量存在时跳过)。测试断言本身不变。
  • 贡献指南.md 中英文同步说明 CI 现在运行这些测试,以及在 macOS 上运行 npm test 会短暂打开测试窗口。

现有 Core tests 和 Mac universal build 不变。新检查是否设为合并必需,另行决定,本 PR 不改仓库规则集。

Tests / 测试

  • 三个测试文件 node --check 通过,工作流 YAML 解析通过。
  • 新任务的实际结果以本 PR 的 CI 运行为准(这些测试会打开窗口,未在本机运行)。

新增 Mac native tests:在 macOS 15 上运行 npm test(含原生测试)和 Mac 界面测试。三处 80 GiB 磁盘保护只在本机生效,托管 CI 机器跳过。贡献指南同步说明。
@sudoHG
sudoHG merged commit 289cea1 into main Oct 4, 2026
3 checks passed
@sudoHG
sudoHG deleted the ci/mac-native-tests branch October 4, 2026 14:45
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