ci: run release gate on compose runner
This commit is contained in:
@@ -46,6 +46,10 @@ const giteaProductionMigrationWorkflow = new URL(
|
||||
"../../.gitea/workflows/migrate-production-database.yml",
|
||||
import.meta.url,
|
||||
);
|
||||
const giteaReleaseQualityWorkflow = new URL(
|
||||
"../../.gitea/workflows/release-quality-gate.yml",
|
||||
import.meta.url,
|
||||
);
|
||||
const resetStagingAccountWorkflow = new URL(
|
||||
"../../.github/workflows/reset-staging-account.yml",
|
||||
import.meta.url,
|
||||
@@ -875,6 +879,14 @@ test("run-local registry state and incoming trees are always cleaned up", () =>
|
||||
}
|
||||
});
|
||||
|
||||
test("manual release gate runs where Docker Compose v2 is available", () => {
|
||||
const workflow = read(giteaReleaseQualityWorkflow);
|
||||
|
||||
assert.match(workflow, /^on:\n\s+workflow_dispatch:/m);
|
||||
assert.match(workflow, /runs-on: manman-linux/);
|
||||
assert.match(workflow, /docker compose version --short \| grep -Eq '\^v\?2\\\.'/);
|
||||
});
|
||||
|
||||
test("production deploy is manual-only and consumes the accepted staging artifact", () => {
|
||||
const mirror = readFileSync(new URL("../../.github/workflows/deploy-production.yml", import.meta.url), "utf8");
|
||||
const production = read(giteaProductionWorkflow);
|
||||
|
||||
Reference in New Issue
Block a user