From fcabb497e8953d367e5c83255467c5c8699a217e Mon Sep 17 00:00:00 2001 From: fylorn <249551762+fylorn@users.noreply.github.com> Date: Sat, 3 Oct 2026 08:25:19 +0800 Subject: [PATCH] ci: run the frontend unit tests The Frontend job ran typecheck and build but not vitest, so the 600+ unit tests, including the rule that every Tauri event subscription goes through src/lib/tauriEvent.ts (#268), only ran on developers' machines. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ad71adb..06b2a5c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,10 @@ jobs: - run: pnpm install --frozen-lockfile - name: Typecheck run: pnpm typecheck + # 前端单元测试原来只在本机跑。其中有守规矩的测试(比如不许绕过 + # `src/lib/tauriEvent.ts` 直接订阅 Tauri 事件),不进 CI 就形同虚设。 + - name: Unit tests + run: pnpm test - name: Build run: pnpm build