Skip to content

Commit 17ec716

Browse files
feat: 添加 GitHub Actions CI 流水线
push/PR 时自动运行 lint → test → build 三步检查。 使用 oven-sh/setup-bun 配置 Bun 环境。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e443a8f commit 17ec716

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, feature/*]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: oven-sh/setup-bun@v2
17+
with:
18+
bun-version: latest
19+
20+
- name: Install dependencies
21+
run: bun install --frozen-lockfile
22+
23+
- name: Lint
24+
run: bun run lint
25+
26+
- name: Test
27+
run: bun test
28+
29+
- name: Build
30+
run: bun run build

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
- [x] git hook 的配置
2323
- [ ] 代码健康度检查
2424
- [x] 单元测试基础设施搭建 (test runner 配置)
25-
- [ ] CI/CD 流水线 (GitHub Actions)
25+
- [x] CI/CD 流水线 (GitHub Actions)

0 commit comments

Comments
 (0)