mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 08:24:46 +00:00
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:
@@ -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/);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user