From b8cc5d499577e8d6ebce012926795cdcff009e11 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Fri, 25 Sep 2026 21:38:22 +0900 Subject: [PATCH] ci: run the workflow on pushes to main and state the local merge check (12-01) The push trigger listed only develop, while main is the integration branch. README now says the host may not run Actions and gives the local loop over the 13 merge gates. Enabling Actions and required checks on the host stays with the repository owner (U-1). Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/quality-gates.yml | 2 +- README.md | 13 +++++++++++++ scripts/generate-ci-workflow.ts | 2 +- .../ci-workflow-generation.test.ts.snap | 2 +- tests/unit/ci-workflow-generation.test.ts | 6 ++++++ 5 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/quality-gates.yml b/.gitea/workflows/quality-gates.yml index f281f13f..172c120c 100644 --- a/.gitea/workflows/quality-gates.yml +++ b/.gitea/workflows/quality-gates.yml @@ -3,7 +3,7 @@ name: frontend-quality-gates on: push: - branches: [develop] + branches: [main, develop] tags: ["v*"] pull_request: workflow_dispatch: diff --git a/README.md b/README.md index 7ccb0636..e9c27a50 100644 --- a/README.md +++ b/README.md @@ -174,6 +174,19 @@ MERGE_READY -> RELEASE_READY -> PROD_PROMOTION_READY -> FIELD_SLO_READY ``` `DOCUMENTATION_READY` is independent. No gate is downgraded to a warning. + +The workflow runs on pull requests, pushes to `main` and `develop`, and `v*` +tags. The Git host of this repository may not have Actions enabled, so a pull +request can show no gate status at all; no status is not a pass. Until the +host runs the workflow and marks the merge gates as required checks, run the 13 +merge gates locally before merging (FE-GATE-008 and 009 need Playwright +browsers): + +```bash +for gate in 001 002 003 004 005 006 007 008 009 010 011 013 020; do + corepack pnpm ci:gate -- "FE-GATE-$gate" || break +done +``` Machine-readable evidence is written below `artifacts/`; generated evidence is ignored by Git while `.gitkeep` files preserve the taxonomy. diff --git a/scripts/generate-ci-workflow.ts b/scripts/generate-ci-workflow.ts index 6424d2eb..9991fbe4 100644 --- a/scripts/generate-ci-workflow.ts +++ b/scripts/generate-ci-workflow.ts @@ -75,7 +75,7 @@ export function renderCiWorkflow(contract: CiGateContract): string { "", "on:", " push:", - " branches: [develop]", + " branches: [main, develop]", ' tags: ["v*"]', " pull_request:", " workflow_dispatch:", diff --git a/tests/unit/__snapshots__/ci-workflow-generation.test.ts.snap b/tests/unit/__snapshots__/ci-workflow-generation.test.ts.snap index 4794345a..638d9b2a 100644 --- a/tests/unit/__snapshots__/ci-workflow-generation.test.ts.snap +++ b/tests/unit/__snapshots__/ci-workflow-generation.test.ts.snap @@ -6,7 +6,7 @@ name: frontend-quality-gates on: push: - branches: [develop] + branches: [main, develop] tags: ["v*"] pull_request: workflow_dispatch: diff --git a/tests/unit/ci-workflow-generation.test.ts b/tests/unit/ci-workflow-generation.test.ts index 1b457e54..ad3f2841 100644 --- a/tests/unit/ci-workflow-generation.test.ts +++ b/tests/unit/ci-workflow-generation.test.ts @@ -1412,6 +1412,12 @@ describe("CI workflow generation", () => { expect(actionUses.every((uses) => /^https:\/\/github\.com\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+@[0-9a-f]{40}$/u.test(uses!))).toBe(true); }); + // 12-01: main is the integration branch; a push there must run the gates. + it("runs on pushes to main", async () => { + const workflow = renderCiWorkflow(await loadCiGateContract(process.cwd())); + expect(workflow).toMatch(/^on:\n {2}push:\n {4}branches: \[main, develop\]$/mu); + }); + // 12-02 / 13-01: immutable_build owns FE-GATE-015 and FE-GATE-027, but only // the first gate of a non-matrix job was ever rendered, so release admission // never ran in CI.