ci: run release gate on compose runner
Staging Backend Quality Gate / validate (push) Has been cancelled
Staging Backend Quality Gate / publish (push) Has been cancelled

This commit is contained in:
Jesse_Chen
2026-08-09 23:17:29 +08:00
parent 9235ee66f6
commit a77fb514cb
4 changed files with 36 additions and 1 deletions
@@ -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);