From 64d08122574dd71facff4730a3d48db064479d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E5=88=A9=E5=93=A5?= <97915@qq.com> Date: Sun, 5 Jul 2026 00:03:14 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=96=B0=E5=A2=9E=20frontend=20job=20?= =?UTF-8?q?=E9=98=B2=E5=89=8D=E7=AB=AF=E6=9E=84=E5=BB=BA=E5=9B=9E=E5=BD=92?= =?UTF-8?q?=EF=BC=88v1.17.9=20=E6=95=B0=E5=80=BC=20bug=20=E6=95=99?= =?UTF-8?q?=E8=AE=AD=EF=BC=89=20(#16)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit web-ui 此前只有本地 vue-tsc,CI 不覆盖,类型错误 / 破坏性 import 只有发布后用户才发觉。新增独立 frontend job 跑 npm ci + npm run build, 与 Python 版本无关故独立于 test matrix,避免跑 6 遍。 本地 npm run build 验证通过(686 模块,575ms)。 --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02d02e3..a050fcd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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