示例工程 52-ci-matrix-smoke
52-ci-matrix-smoke/demo-01-matrix-plan/README.md
# demo-01-matrix-plan
矩阵计划:去重 OS、计算 job 数、判断 Linux 是否需要 xvfb、估算总分钟数;
三平台全量是 3 个 job × 10 分钟。
## 运行
```bash
pnpm --filter @tutorial/52-ci-matrix-smoke-demo-01-matrix-plan start
```
## 验证
```bash
pnpm --filter @tutorial/52-ci-matrix-smoke-demo-01-matrix-plan smoke
# {"evt":"smoke","ok":true,"full":{"jobs":3,"estimateMinutes":30},...}
```
## 说明
- 重复 OS 先去重,避免白跑 job。
- 只有 Linux 需要 xvfb;macOS/Windows 有真实显示。
- 估算值用于容量规划,不是实际账单。
## 已知限制
- 每步耗时是常量,不随项目规模变化。
- 不含缓存命中与失败重试的影响。