Skip to content

Commit 5b69279

Browse files
committed
ci(workflows): 包体闸移入已构建的前端 job
1 parent 3abe4cf commit 5b69279

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎.github/workflows/pr-check.yml‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ jobs:
6464
run: cd app && npx tsc --noEmit
6565
- name: Build
6666
run: cd app && npm run build
67+
# 批 8 T17(G2 分档):包体闸的**输入是前端构建产物** ⇒ 与产出它的 job 同域。`app/dist` 刚由
68+
# 上一 step 生成(同一条 `npm run build`:app/package.json = `tsc && vite build`,vite 默认
69+
# outDir=dist)⇒ `--no-build` 判的正是**本次构建**的产物(去掉它 = 同一条命令再构建一次)。
70+
# 🔴 挂在无条件 job 会**恒红**(那 job 不构建、`dist` 不入库):批 8 T17 导出树实测 exit 2。
71+
- name: First-screen bundle budget (no-build; lazy side NOT judged — first screen only)
72+
run: node scripts/check-bundle-budget.mjs --no-build
6773

6874
# ===========================================================================
6975
# App Rust 后端 —— Tauri 主进程(含单测与 lint)
@@ -197,13 +203,9 @@ jobs:
197203
run: node scripts/check-command-registry.mjs
198204

199205
# 批 8 T17(G2 · 脚本域门禁的执行者缺口):`on:` 无 `paths`,其余四个 job 都带
200-
# `needs: changes` + `if:`,只有本 job 无条件 ⇒ 脚本域门禁挂在这里才**每次 PR/push 都跑**。
201-
# 不补 `scripts/**` glob —— glob 属 paths-filter 域,补它只覆盖「新增路径」,且会漏掉
202-
# 「改了 `scripts/**` 却被 filter 判为无变更」这一二次缺口(控制方 §2 G2)。
203-
- name: First-screen bundle budget (no-build; lazy side judged only on fresh builds)
204-
run: node scripts/check-bundle-budget.mjs --no-build
205-
# ⚠️ 本 step 判的是**既有** `app/dist`(`dist` 不入库):脚本契约里「产物缺失」= exit 2
206-
# ⇒ 它要求受判产物已存在;本 job 不构建,「新鲜构建」的执行者仍待定(批 8 T17 未决)。
206+
# `needs: changes` + `if:`,只有本 job 无条件 ⇒ **不需要构建产物**的脚本域门禁挂在这里,
207+
# 才每次 PR/push 都跑。不补 `scripts/**` glob —— glob 属 paths-filter 域,补它只覆盖
208+
# 「新增路径」,且会漏掉「改了 `scripts/**` 却被 filter 判为无变更」这一二次缺口(§2 G2)。
207209
# 批 8 T17(G6):豁免表散文数字对拍探针**单列转正**为 CI step,**不并入八闸集合**
208210
# (八闸集合是批次间对账基线;散文数字天然易漂 ⇒ 硬合并会让逐字对账漂移、频繁假红)。
209211
- name: Exemption table prose check

0 commit comments

Comments
 (0)