mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
- CI: PR触发自动化测试(lint + type check + bun test) - CD: push到main/tag触发Docker镜像构建并发布到GHCR - 修复Dockerfile中bun.lockb→bun.lock引用 - 修复tsconfig.json排除测试文件避免dist中重复 - 修复file-review-store测试排序时间戳竞态
32 lines
598 B
YAML
32 lines
598 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Lint
|
|
run: bun run lint
|
|
continue-on-error: true # Pre-existing lint violations — non-blocking until cleanup
|
|
|
|
- name: Type check
|
|
run: bun run build
|
|
|
|
- name: Run tests
|
|
run: bun test
|