claude-code/.github/workflows/ci.yml
claude-code-best 17ec716dbf feat: 添加 GitHub Actions CI 流水线
push/PR 时自动运行 lint → test → build 三步检查。
使用 oven-sh/setup-bun 配置 Bun 环境。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 03:47:47 +08:00

31 lines
472 B
YAML

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