ci(console): GitHub Actions 跑 console 包 build+test(ubuntu/windows 矩阵) - #15
Closed
spacexun2 wants to merge 2 commits into
Closed
ci(console): GitHub Actions 跑 console 包 build+test(ubuntu/windows 矩阵)#15spacexun2 wants to merge 2 commits into
spacexun2 wants to merge 2 commits into
Conversation
测试脚本改跨平台形态(cd tests && node --import tsx --test 通配 glob,替代 POSIX 环境变量前缀);修正 enumerate.spec.ts 迁移后过期断言(dsh-external→vlln,.git URL 变体)。
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.
动机
仓库当前没有任何 CI(无 workflows、无根 package.json),PR 全靠人工验证。历史问题集中在 Windows(
.cmd垫片 spawn、HOME 兜底等,#4/#8 均为 Windows 专属问题),因此需要 ubuntu + windows 双矩阵,避免只在单平台绿。内容
.github/workflows/ci.yml:双矩阵(ubuntu-latest / windows-latest)跑 console 包 build + test;pnpm 9(lockfile 为 lockfileVersion 9.0)+ Node 22 + pnpm cache(指定cache-dependency-path)。package.json的test脚本从 POSIX 环境变量前缀改为cd tests && node --import tsx --test "**/*.spec.ts",Windows cmd 下可用。tests/discovery/enumerate.spec.ts的parseGithubUrl断言在仓库迁移(dsh-external → vlln)后过期(owner 期望仍为 dsh-external),当前 main 上测试是红的;已改为 vlln 并补.gitURL 变体用例。说明
测试脚本改动与 #12 的 package.json 改动合并后一致(两 PR 采用相同形态)。
AI 辅助提交(模型 DeepSeek、工具 DeepSeek Harness)。