mirror of
https://ghfast.top/https://github.com/aeroxw/easy_tdx_max.git
synced 2026-09-12 16:54:20 +08:00
ci: 新增 frontend job 防前端构建回归(v1.17.9 数值 bug 教训) (#16)
web-ui 此前只有本地 vue-tsc,CI 不覆盖,类型错误 / 破坏性 import 只有发布后用户才发觉。新增独立 frontend job 跑 npm ci + npm run build, 与 Python 版本无关故独立于 test matrix,避免跑 6 遍。 本地 npm run build 验证通过(686 模块,575ms)。
This commit is contained in:
@@ -37,3 +37,21 @@ jobs:
|
||||
python-version: "3.13"
|
||||
- run: pip install -e ".[dev,web]"
|
||||
- run: mypy src/
|
||||
|
||||
# 前端构建检查。web-ui 此前只有本地 vue-tsc,CI 不覆盖,
|
||||
# 类型错误 / 破坏性 import 只有发布后用户才发觉(v1.17.9 的
|
||||
# 65409694% 离谱数值 bug 即前端无回归守卫的典型后果)。
|
||||
# 与 Python 版本无关,故独立 job,避免在 test matrix 里跑 6 遍。
|
||||
frontend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
cache: "npm"
|
||||
cache-dependency-path: web-ui/package-lock.json
|
||||
- run: npm ci
|
||||
working-directory: web-ui
|
||||
- run: npm run build
|
||||
working-directory: web-ui
|
||||
|
||||
Reference in New Issue
Block a user