File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments