From 63d46af7b72df1bb2664617b46eaa94af5f7064c Mon Sep 17 00:00:00 2001 From: zhengwr Date: Thu, 25 Jun 2026 11:50:56 +0800 Subject: [PATCH] =?UTF-8?q?ci(P0=E2=91=A3):=20=E6=96=B0=E5=A2=9E=20eip4-we?= =?UTF-8?q?b=20Gitea=20Actions=20CI(=E7=B1=BB=E5=9E=8B=E6=A3=80=E6=9F=A5+?= =?UTF-8?q?=E6=9E=84=E5=BB=BA+vitest)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 前端此前无 CI。补 .gitea/workflows/ci.yml 跑 npm ci + npm run build(tsc -b && vite build)+ npm test,防前端回归(2026-06-24 架构评审 §10 验证体系)。 Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..63715a9 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,27 @@ +# eip4-web CI(Gitea Actions)。 +# +# P0 修复(2026-06-24 架构评审):eip4-web 此前无 CI。本工作流跑类型检查+构建+单测, +# 防前端回归(总览 §10 验证体系)。 +# +# 前置条件:Gitea 实例需已启用 Actions 且注册了带 `ubuntu-latest` 标签的 act_runner。 +name: ci +on: + push: + branches: [main] + pull_request: + +jobs: + build-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + cache: npm + - name: 安装依赖 + run: npm ci + - name: 类型检查 + 构建(tsc -b && vite build) + run: npm run build + - name: 单测(vitest) + run: npm test