Skip to content

Commit 48062e6

Browse files
authored
ci(feat): Add a new meta job for the protected branch rules for the tests (#799)
1 parent 5c23557 commit 48062e6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/e2e-tests.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,22 @@ jobs:
131131

132132
- name: Run e2e ${{ matrix.e2e }}
133133
run: make ${{ matrix.e2e }} --debug
134+
135+
# This is a "trick", a meta task which does not change, and we can use in
136+
# the protected branch rules as opposed to the E2E tests one above which
137+
# may change regularly.
138+
# This allows us to mark only this job as required instead of each individual
139+
# ever-changing E2E tests.
140+
validate-e2e:
141+
name: Check status
142+
runs-on: ubuntu-latest
143+
needs: e2e-tests
144+
if: always()
145+
steps:
146+
- name: Successful run
147+
if: ${{ !(contains(needs.*.result, 'failure')) }}
148+
run: exit 0
149+
150+
- name: Failing run
151+
if: ${{ contains(needs.*.result, 'failure') }}
152+
run: exit 1

0 commit comments

Comments
 (0)