diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml deleted file mode 100644 index d7675d1..0000000 --- a/.gitea/workflows/ci.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: ci -on: [push, pull_request] - -jobs: - test: - runs-on: ubuntu-latest - # 作业容器直接用国内镜像的 node:24(node:sqlite 需要 >= 22.5) - container: - image: docker.1ms.run/library/node:24-bookworm - steps: - - name: Install git (checkout 依赖) - run: apt-get update -qq && apt-get install -y -qq git ca-certificates - - - uses: actions/checkout@v4 - - - name: Install frontend deps (npmmirror) - run: npm install --prefix app --no-audit --no-fund --registry=https://registry.npmmirror.com - - - name: Static checks (syntax + tsc + build + tripwire) - run: node scripts/check.mjs - - - name: Integration tests (seed/login/invite-CRUD/registration) - run: node scripts/test-integration.mjs diff --git a/README.md b/README.md index 8bb8b94..a43d987 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,6 @@ > 个人成长档案馆 —— 面向大学生的留痕、检索、量化与多端同步系统。 - ![License](https://img.shields.io/badge/license-MIT-blue.svg) ![Node](https://img.shields.io/badge/node-%E2%89%A522.5-green.svg) @@ -106,7 +103,6 @@ node scripts/smoke.mjs # 部署后冒烟 git config core.hooksPath .githooks # 启用 pre-push 钩子:工作区不干净或测试红,push 直接拒绝 ``` -CI:push 自动跑 check + 集成测试(见 `.gitea/workflows/ci.yml`,需在 Gitea 配置 act_runner)。 ## 项目结构 @@ -124,7 +120,7 @@ CI:push 自动跑 check + 集成测试(见 `.gitea/workflows/ci.yml`,需 ├─ .gitea/workflows/ # CI ├─ .githooks/ # pre-push 钩子 ├─ docs/ # api.md(HTTP API)· DESIGN.md(设计底稿)· examples/ -└─ .gitea/ .githooks/ # CI workflow 与 pre-push 钩子 +└─ .githooks/ # pre-push 质量门禁(check + 35 条集成断言) ``` ## 环境变量(sync-server)