From 5a00361d8e3cb0600f7ee2a588a20932a8b449c3 Mon Sep 17 00:00:00 2001 From: JianFeeeee <109188060+JianFeeeee@users.noreply.github.com> Date: Thu, 1 Oct 2026 23:17:39 +0800 Subject: [PATCH] =?UTF-8?q?docs(ci):=20GUI=20job=20=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=B8=BA=E4=BA=94=E4=B8=AA=20.mjs=EF=BC=8C?= =?UTF-8?q?=E8=A1=A5=20connections-io=20=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 49a8aafa..7f4bb8c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,13 +140,16 @@ jobs: # ── Electron GUI(纯 Node 测试,零依赖)── # - # `npm test` 跑四个 .mjs,全部只 import node: 内置模块(fs/url/path/vm), + # `npm test` 跑五个 .mjs,全部只 import node: 内置模块(fs/url/path/vm), # 所以**不需要 npm ci、不需要 electron**,秒级完成。 # `npm run test-live` 需真 Electron + 真后端 ⇒ 不进 CI。 # # endpoint-align.test.mjs 跨出 cmd/gui 读 ../../internal/plugins/webui/handler.go # 做端点对账 —— checkout 深度足够(默认 fetch-depth:1 已含工作树文件), # 不需要额外 checkout 步骤。 + # + # connections-io.test.mjs 同样是沙箱里跑 main.js 的**真实函数**(node:vm), + # 在临时目录里断言连接配置的加载/保存行为,不碰真实用户数据。 gui: name: GUI (node) runs-on: ubuntu-latest