feat: 添加 GitHub Actions CI 流水线

push/PR 时自动运行 lint → test → build 三步检查。
使用 oven-sh/setup-bun 配置 Bun 环境。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
claude-code-best 2026-04-01 03:47:47 +08:00
parent e443a8fa51
commit 17ec716dbf
2 changed files with 31 additions and 1 deletions

30
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: CI
on:
push:
branches: [main, feature/*]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Lint
run: bun run lint
- name: Test
run: bun test
- name: Build
run: bun run build

View File

@ -22,4 +22,4 @@
- [x] git hook 的配置
- [ ] 代码健康度检查
- [x] 单元测试基础设施搭建 (test runner 配置)
- [ ] CI/CD 流水线 (GitHub Actions)
- [x] CI/CD 流水线 (GitHub Actions)