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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
239b22ae1a
commit
b8cc5d4995
@@ -3,7 +3,7 @@ name: frontend-quality-gates
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [develop]
|
||||
branches: [main, develop]
|
||||
tags: ["v*"]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ export function renderCiWorkflow(contract: CiGateContract): string {
|
||||
"",
|
||||
"on:",
|
||||
" push:",
|
||||
" branches: [develop]",
|
||||
" branches: [main, develop]",
|
||||
' tags: ["v*"]',
|
||||
" pull_request:",
|
||||
" workflow_dispatch:",
|
||||
|
||||
@@ -6,7 +6,7 @@ name: frontend-quality-gates
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [develop]
|
||||
branches: [main, develop]
|
||||
tags: ["v*"]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user