ci: move packaging to main and remove repeated CLI suites

PR runners were rebuilding distribution artifacts and executing the entire CLI source suite on all three E2E shards. Keep packaging coverage after merge, let the local E2E runner own its dependency build, and execute source tests once in an existing required check. Root typecheck already validates plugin examples.
This commit is contained in:
Mohamed Boudra
2026-09-15 00:05:47 +02:00
parent 7640588a63
commit 24cf660161
6 changed files with 98 additions and 114 deletions
+5 -3
View File
@@ -281,11 +281,13 @@ test("browser and desktop tests have exclusive, directory-owned suites", () => {
]);
});
test("non-required Docker and Nix workflows avoid runners with workflow path filters", () => {
for (const workflowPath of [dockerWorkflowPath, nixWorkflowPath]) {
test("packaging runs on main without allocating pull-request runners", () => {
const desktopPackagesPath = new URL(".github/workflows/desktop-packages.yml", repoRoot);
for (const workflowPath of [dockerWorkflowPath, nixWorkflowPath, desktopPackagesPath]) {
const source = readFileSync(workflowPath, "utf8");
const trigger = source.split("jobs:", 1)[0];
assert.match(trigger, /^\s+paths:\s*$/m);
assert.match(trigger, /push:\s*\n\s+branches: \[main\]/);
assert.doesNotMatch(trigger, /pull_request/);
assert.doesNotMatch(source, /dorny\/paths-filter/);
}
});