




















@@ -141,9 +141,6 @@ jobs:
141141 import {
142142 createChannelContractTestShards,
143143 } from "./scripts/lib/channel-contract-test-plan.mjs";
144- import {
145- createPluginContractTestShards,
146- } from "./scripts/lib/plugin-contract-test-plan.mjs";
147144148145 const parseBoolean = (value, fallback = false) => {
149146 if (value === undefined) return fallback;
@@ -153,6 +150,24 @@ jobs:
153150 return fallback;
154151 };
155152153+ const { createPluginContractTestShards } = await import(
154+ "./scripts/lib/plugin-contract-test-plan.mjs"
155+ ).catch((error) => {
156+ if (error?.code !== "ERR_MODULE_NOT_FOUND") {
157+ throw error;
158+ }
159+ return {
160+ createPluginContractTestShards: () => [
161+ {
162+ checkName: "checks-fast-contracts-plugins-legacy",
163+ includePatterns: ["src/plugins/contracts/**/*.test.ts"],
164+ runtime: "node",
165+ task: "contracts-plugins",
166+ },
167+ ],
168+ };
169+ });
170+156171 const createMatrix = (include) => ({ include });
157172 const outputPath = process.env.GITHUB_OUTPUT;
158173 const isCanonicalRepository = process.env.OPENCLAW_CI_REPOSITORY === "openclaw/openclaw";
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。