From 22d4c727172567787a7719a87bdda0c3e960011b Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Thu, 11 Jun 2026 00:18:00 -0400 Subject: [PATCH] test(ci): allow temporary epic branch in PR trigger assertion The ci-workflow meta-test pinned the literal branch list [main, dev]; the account-pools epic adds its integration branch to pull_request triggers so phase PRs get full CI. Assert main+dev coverage via pattern instead of exact list. --- tests/unit/scripts/github/ci-workflow.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/scripts/github/ci-workflow.test.ts b/tests/unit/scripts/github/ci-workflow.test.ts index a7aa8788..1cac4557 100644 --- a/tests/unit/scripts/github/ci-workflow.test.ts +++ b/tests/unit/scripts/github/ci-workflow.test.ts @@ -18,7 +18,10 @@ describe('pr ci workflow', () => { expect(workflow).toContain('name: CI'); expect(workflow).toContain('pull_request:'); - expect(workflow).toContain('branches: [main, dev]'); + // main and dev must always be covered; long-lived epic branches may be + // appended temporarily (e.g. kai/feat/1464-account-pools) so phase PRs + // targeting the epic get full CI. + expect(workflow).toMatch(/branches: \[main, dev(?:, [^\]]+)?\]/); // 4 jobs: validate (matrix), build, test, compose-parity — each gated expect(workflow.split(trustedAuthorGate).length - 1).toBe(4); expect(workflow).toContain('group: ci-${{ github.ref }}');