mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
ci: run E2E only on nightly schedule, skip E2E on PR/push/manual CI, keep manual e2e workflow for on-demand runs, and align matrix/docs accordingly
This commit is contained in:
@@ -8,7 +8,7 @@ import { fileURLToPath } from "node:url";
|
||||
|
||||
import { getE2ESuite, listE2ESuites } from "./suite-registry.mjs";
|
||||
|
||||
const DEFAULT_E2E_DATABASE_URL = "postgres://projectx:projectx@localhost:5432/projectx_e2e";
|
||||
const DEFAULT_E2E_DATABASE_URL = "postgres://bookorbit:bookorbit@localhost:5432/bookorbit_e2e";
|
||||
|
||||
const scriptDir = dirname(fileURLToPath(import.meta.url));
|
||||
const rootDir = join(scriptDir, "..", "..");
|
||||
|
||||
@@ -56,12 +56,12 @@ function toMatrixItems(suites) {
|
||||
function selectSuitesForEvent(eventName, changedFiles) {
|
||||
const suites = listE2ESuites();
|
||||
|
||||
if (eventName === "workflow_dispatch" || eventName === "push" || eventName === "schedule") {
|
||||
if (eventName === "schedule") {
|
||||
return toMatrixItems(suites);
|
||||
}
|
||||
|
||||
if (eventName !== "pull_request") {
|
||||
return toMatrixItems(suites);
|
||||
return [];
|
||||
}
|
||||
|
||||
const smokeSuites = suites.filter((suite) => suite.lane === "smoke");
|
||||
|
||||
Reference in New Issue
Block a user