From 12ac3ea9cf6b365930b72d4e33cdae495301cba8 Mon Sep 17 00:00:00 2001 From: worable Date: Sun, 25 Oct 2026 15:35:40 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=9C=A8=E5=86=85=E6=A0=B8=20CI=20?= =?UTF-8?q?=E9=87=8C=E8=B7=91=E4=B8=A4=E4=B8=AA=E6=94=AF=E4=BB=98=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 插件仓库自己装不起来(workspace 协议引用内核包),所以 alipay / wechatpay 的 69 个用例(协议签名、回调解密、轮换密钥选取)此前**只在本机绿过** —— CI 只验证了 「装得上、frontend 能构建」,没验证行为。 这两份测试是纯密码学的:自签密钥对扮演商户与渠道,不碰数据库、不出网,所以放进 已有的插件安装步骤即可,代价不到一分钟。装完不跑测试等于把「能不能装」当成「对不对」。 --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc3dd03..0bb432b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -226,6 +226,12 @@ jobs: test -f "apps/api/data/plugins/$id/frontend/dist/index.js" done + # 支付驱动的协议/接线测试是纯密码学的(自签密钥对,不碰 DB、不出网), + # 但它们住在插件仓库 —— 不在这里跑,69 个用例就只是「在作者机器上绿过」。 + for id in alipay wechatpay; do + ( cd "$plugins/packages/plugins/$id" && pnpm test ) + done + - name: Test run: pnpm test