From 17ec716dbfee7cd07ed52515d4830c952757e8eb Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Wed, 1 Apr 2026 03:47:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20GitHub=20Actions?= =?UTF-8?q?=20CI=20=E6=B5=81=E6=B0=B4=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit push/PR 时自动运行 lint → test → build 三步检查。 使用 oven-sh/setup-bun 配置 Bun 环境。 Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ TODO.md | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f60da1e --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/TODO.md b/TODO.md index bc76997..e7bc280 100644 --- a/TODO.md +++ b/TODO.md @@ -22,4 +22,4 @@ - [x] git hook 的配置 - [ ] 代码健康度检查 - [x] 单元测试基础设施搭建 (test runner 配置) -- [ ] CI/CD 流水线 (GitHub Actions) +- [x] CI/CD 流水线 (GitHub Actions)