Author SHA1 Message Date
RyRh ab32519872 test5
CI / test (push) In progress
2026-09-04 09:44:27 +08:00
RyRh 0dac4ddf41 test4
CI / test (push) Failing after 30s
2026-09-04 09:39:40 +08:00
RyRh 79042cd618 测试ci1 2026-09-04 09:28:15 +08:00
RyRh 6c120c54f1 test 2026-09-04 09:23:18 +08:00
RyRh f524298d95 test
CI / test (push) Failing after 1m58s
2026-09-03 18:57:24 +08:00
RyRh e6ee5fd18d 测试ci
CI / test (push) Failing after 34s
2026-09-03 18:52:39 +08:00
RyRh 6f4a5677fd 测试ci自动化
CI / test (push) Failing after 1m33s
2026-09-03 18:50:13 +08:00
+51
View File
@@ -0,0 +1,51 @@
name: CI
on:
push:
branches: [develop, main, refactor/v2, feature/gitea-ci-verify-yeuimu]
pull_request:
jobs:
test:
runs-on: online # 使用你创建的 runner 标签
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: inkreach_test
# 去掉 ports 映射,避免与宿主机冲突
options: >-
--health-cmd "pg_isready -U test"
--health-interval 5s
--health-timeout 3s
--health-retries 10
env:
DATABASE_URL: postgresql://test:test@postgres:5432/inkreach_test
steps:
- uses: https://gitea.com/actions/checkout@v4
# 测试 Docker 是否可用(验证挂载是否生效)
# - name: 测试 Docker 环境
# run: docker --version
- name: 安装依赖
run: |
npm install -g @pnpm/exe
pnpm install --frozen-lockfile --registry=https://registry.npmmirror.com --network-timeout 600000
- name: Prisma generate
run: pnpm --filter @inkreach/api prisma:generate
- name: 建表(migrate deploy
run: pnpm --filter @inkreach/api exec prisma migrate deploy
- name: API 测试(真实数据库集成测试)
run: pnpm --filter @inkreach/api test
- name: Admin 前端测试
run: pnpm --filter @inkreach/admin test