Commit 4519b22
feat(ci): run E2E tests in merge queue without approval gate (#335)
## Summary
- Add `merge_group` trigger to `e2e-tests.yml`
- Introduce a lightweight `approval-gate` job that requires manual
approval via `azure-prod` environment for `pull_request`/`push`, but is
skipped for `merge_group`
- `run-e2e-tests` job depends on `approval-gate` and proceeds when
approval is granted or gate is skipped (merge queue case)
- For `merge_group`, a `gate` step checks changed files via `git diff`
and skips expensive steps when no relevant files changed (since
`merge_group` does not support native `paths:` filtering)
- All test logic lives in a single job — no duplication, no separate
reusable workflow file
## Setup required
Add `run-e2e-tests` as a required status check in the **merge queue
ruleset** (not the PR ruleset) so E2E is enforced as a merge gate
without blocking PR entry.
> **Note:** Secrets must be configured at the **repository level** (not
only environment-scoped) so `run-e2e-tests` can access them without an
`environment:` declaration.
## Test Plan
- [ ] Verify merge queue runs E2E without prompting for approval
- [ ] Verify PR runs still prompt for `azure-prod` approval
- [ ] Verify failing E2E in merge queue ejects the PR from the queue
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b716671 commit 4519b22
1 file changed
+32
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
52 | 73 | | |
53 | 74 | | |
| 75 | + | |
54 | 76 | | |
55 | 77 | | |
56 | 78 | | |
57 | 79 | | |
58 | 80 | | |
| 81 | + | |
59 | 82 | | |
60 | 83 | | |
61 | 84 | | |
| |||
73 | 96 | | |
74 | 97 | | |
75 | 98 | | |
| 99 | + | |
76 | 100 | | |
77 | 101 | | |
78 | 102 | | |
| |||
104 | 128 | | |
105 | 129 | | |
106 | 130 | | |
| 131 | + | |
107 | 132 | | |
108 | 133 | | |
109 | 134 | | |
110 | 135 | | |
111 | 136 | | |
| 137 | + | |
112 | 138 | | |
113 | 139 | | |
114 | 140 | | |
| |||
0 commit comments