ci: 添加GitHub Actions CI/CD流水线

- CI: PR触发自动化测试(lint + type check + bun test)
- CD: push到main/tag触发Docker镜像构建并发布到GHCR
- 修复Dockerfile中bun.lockb→bun.lock引用
- 修复tsconfig.json排除测试文件避免dist中重复
- 修复file-review-store测试排序时间戳竞态
This commit is contained in:
accelerator
2026-03-01 14:47:22 +08:00
parent e91ebdc974
commit b4feb0a822
6 changed files with 120 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ FROM oven/bun:1 as frontend-builder
WORKDIR /app/frontend
# 拷贝前端的 package.json 和 lockfile
COPY frontend/package.json frontend/bun.lockb ./
COPY frontend/package.json frontend/bun.lock* ./
# 安装前端依赖
RUN bun install --frozen-lockfile
@@ -22,7 +22,7 @@ FROM oven/bun:1 as backend-builder
WORKDIR /app
# 拷贝后端的 package.json 和 lockfile
COPY package.json bun.lockb ./
COPY package.json bun.lock* ./
# 只安装生产环境依赖
RUN bun install --frozen-lockfile --production