mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 23:22:32 +00:00
CI: run extension-fast via multipass for channel plugins
This commit is contained in:
@@ -3,7 +3,9 @@ import path from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
detectChangedExtensionIds,
|
||||
filterMultipassFastExtensionIds,
|
||||
listAvailableExtensionIds,
|
||||
MULTIPASS_FAST_EXTENSION_IDS,
|
||||
resolveExtensionTestPlan,
|
||||
} from "../../scripts/test-extension.mjs";
|
||||
|
||||
@@ -72,4 +74,24 @@ describe("scripts/test-extension.mjs", () => {
|
||||
[...extensionIds].toSorted((left, right) => left.localeCompare(right)),
|
||||
);
|
||||
});
|
||||
|
||||
it("filters changed extensions to the multipass-fast matrix", () => {
|
||||
const filtered = filterMultipassFastExtensionIds([
|
||||
"line",
|
||||
"openrouter",
|
||||
"telegram",
|
||||
"microsoft",
|
||||
"discord",
|
||||
]);
|
||||
|
||||
expect(filtered).toEqual(["discord", "line", "telegram"]);
|
||||
expect(MULTIPASS_FAST_EXTENSION_IDS).toEqual([
|
||||
"discord",
|
||||
"imessage",
|
||||
"line",
|
||||
"signal",
|
||||
"slack",
|
||||
"telegram",
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user