Skip to content

ci(console): GitHub Actions 跑 console 包 build+test(ubuntu/windows 矩阵) - #15

Closed
spacexun2 wants to merge 2 commits into
vlln:mainfrom
spacexun2:ci/console-tests
Closed

ci(console): GitHub Actions 跑 console 包 build+test(ubuntu/windows 矩阵)#15
spacexun2 wants to merge 2 commits into
vlln:mainfrom
spacexun2:ci/console-tests

Conversation

@spacexun2

Copy link
Copy Markdown

动机

仓库当前没有任何 CI(无 workflows、无根 package.json),PR 全靠人工验证。历史问题集中在 Windows(.cmd 垫片 spawn、HOME 兜底等,#4/#8 均为 Windows 专属问题),因此需要 ubuntu + windows 双矩阵,避免只在单平台绿。

内容

  1. .github/workflows/ci.yml:双矩阵(ubuntu-latest / windows-latest)跑 console 包 build + test;pnpm 9(lockfile 为 lockfileVersion 9.0)+ Node 22 + pnpm cache(指定 cache-dependency-path)。
  2. 测试脚本跨平台化package.jsontest 脚本从 POSIX 环境变量前缀改为 cd tests && node --import tsx --test "**/*.spec.ts",Windows cmd 下可用。
  3. 修正既有失败断言tests/discovery/enumerate.spec.tsparseGithubUrl 断言在仓库迁移(dsh-external → vlln)后过期(owner 期望仍为 dsh-external),当前 main 上测试是红的;已改为 vlln 并补 .git URL 变体用例。

说明

测试脚本改动与 #12 的 package.json 改动合并后一致(两 PR 采用相同形态)。


AI 辅助提交(模型 DeepSeek、工具 DeepSeek Harness)。

测试脚本改跨平台形态(cd tests && node --import tsx --test 通配 glob,替代 POSIX 环境变量前缀);修正 enumerate.spec.ts 迁移后过期断言(dsh-external→vlln,.git URL 变体)。
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