Skip to content

feat: 添加 GitHub CI 工作流,支持多平台多版本自动验证#76

Merged
qorzj merged 2 commits into
lessweb:mainfrom
Lellansin:feat/github-ci-workflow
May 16, 2026
Merged

feat: 添加 GitHub CI 工作流,支持多平台多版本自动验证#76
qorzj merged 2 commits into
lessweb:mainfrom
Lellansin:feat/github-ci-workflow

Conversation

@Lellansin
Copy link
Copy Markdown
Contributor

@Lellansin Lellansin commented May 16, 2026

变更内容

为项目添加 GitHub Actions CI 工作流,每次 PR 时自动执行构建和测试验证。

CI 矩阵

维度 覆盖范围
操作系统 Ubuntu、Windows、macOS
Node.js 版本 18、20、22、24
并行 Job 数 3 × 4 = 12

验证步骤

  1. npm ci — 安装依赖
  2. npm run check — TypeScript 类型检查 + ESLint + Prettier 格式校验
  3. npm run bundle — esbuild 构建
  4. npm test — 运行测试套件

触发条件

  • PR 到 main 分支
  • push 到 main 分支

其他

  • fail-fast: false,单个 job 失败不会取消其他 job
  • 启用了 actions/setup-node 的 npm 缓存,加速后续运行

@qorzj qorzj merged commit bcedf50 into lessweb:main May 16, 2026
@qorzj qorzj mentioned this pull request May 16, 2026
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.

2 participants