Compare commits
2 Commits
67731663c1
...
2a37251f6f
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a37251f6f | |||
| 63d46af7b7 |
27
.gitea/workflows/ci.yml
Normal file
27
.gitea/workflows/ci.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user