Skip to content

Commit 5121b9e

Browse files
committed
.github: Aggregate e2e matrix jobs into a single status
Signed-off-by: timflannagan <timflannagan@gmail.com>
1 parent 82ef358 commit 5121b9e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
pull_request:
99
workflow_dispatch:
1010
jobs:
11-
e2e-tests:
11+
e2e:
1212
strategy:
1313
fail-fast: false
1414
matrix:
@@ -26,4 +26,16 @@ jobs:
2626
with:
2727
name: e2e-test-output-${{ (github.event.pull_request.head.sha || github.sha) }}-${{ github.run_id }}-${{ matrix.parallel-id }}
2828
path: ${{ github.workspace }}/bin/artifacts/*
29-
# TODO: create job to combine test artifacts using code in https://github.com/operator-framework/operator-lifecycle-manager/pull/1476
29+
# TODO: create job to combine test artifacts using code in https://github.com/operator-framework/operator-lifecycle-manager/pull/1476
30+
e2e-tests:
31+
if: ${{ always() }}
32+
runs-on: ubuntu-latest
33+
needs: e2e
34+
steps:
35+
- run: |
36+
echo "Matrix result: ${{ needs.e2e.result }}"
37+
- name: check individual matrix results
38+
if: ${{ needs.e2e.result == 'failure' }}
39+
run: |
40+
echo 'Failure: at least one e2e matrix job has failed'
41+
exit 1

0 commit comments

Comments
 (0)