| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
ci: add Coding CI pipeline, vitest coverage, E2E migration, and auto-release (merge request !63) Squash merge branch 'feat/ci-pipeline' into 'master' ## Summary - 新增 `.coding-ci.yaml`:4 stage Coding CI 流水线(validate → build → e2e → publish) - lint + test 并行执行 - E2E 有 token 时才跑 - publish 版本预检 + `.npmrc` 自动清理 - 新增 `vitest.config.ts`(单元测试 + coverage: cobertura/text) - 新增 `vitest.e2e.config.ts`(E2E: 60s timeout) - 迁移 `test/e2e.mjs` → `src/__tests__/e2e/e2e.test.ts`(vitest) - 新增 --version、--help、status、pull/push --dry-run 测试 - 无 token 时自动 skip - 新增 `.versionrc`(standard-version changelog 配置) - 新增 scripts: `test:e2e`, `test:coverage`, `release` - 修复 2 个 update.test.ts 失败测试 ## Test plan - [x] `npm run test` — 275 tests passed - [x] `npm run test:e2e` — 5 passed, 6 skipped (no token) - [x] `npm run build` — dist/ 正常产出 - [x] `.coding-ci.yaml` YAML 语法校验通过 - [ ] TGit 上配置 CI 变量后验证流水线 ## CI 变量(需在 TGit 手动配置) | 变量 | 类型 | |------|------| | `TEAMAI_TEST_TOKEN_SECRET` | masked | | `TEAMAI_TEST_REPO_URL_SECRET` | masked | | `NPM_TOKEN_SECRET` | masked + protected | | 5 个月前 |