mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 12:16:59 +00:00
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.
This commit is contained in:
@@ -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 }}');
|
||||
|
||||
Reference in New Issue
Block a user