Skip to content

Commit 01ab128

Browse files
rafissBuonOmo
authored andcommitted
workflows: add a wrapper job to report test results
This wrapper job will have a stable name, so it's easy to configure a required check on it.
1 parent 121a891 commit 01ab128

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
jobs:
20+
# Since the name of the matrix job depends on the version, we define another job with a more stable name.
21+
test_results:
22+
if: ${{ always() }}
23+
runs-on: ubuntu-latest
24+
name: Test Results
25+
needs: [test]
26+
steps:
27+
- run: |
28+
result="${{ needs.test.result }}"
29+
if [[ $result == "success" || $result == "skipped" ]]; then
30+
exit 0
31+
else
32+
exit 1
33+
fi
34+
2035
test:
2136
runs-on: ubuntu-22.04
2237
strategy:

0 commit comments

Comments
 (0)