Skip to content

Commit d48b15b

Browse files
authored
CI: detect test matrix failure correctly (#354)
We were missing always(), and use the alls-green action to verify the status of the test matrix jobs. Without always() the check step was being skipped whenever a test failed. 🤦
1 parent e24e1ec commit d48b15b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,12 @@ jobs:
120120
name: Test matrix status
121121
runs-on: ubuntu-latest
122122
needs: [test]
123+
if: always()
123124
steps:
124-
- name: Check build matrix status
125-
if: needs.test.result != 'success'
126-
run: exit 1
125+
- name: Decide whether the needed jobs succeeded or failed
126+
uses: re-actors/alls-green@release/v1
127+
with:
128+
jobs: ${{ toJSON(needs) }}
127129

128130
pre-deploy:
129131
name: Pre-Deploy

CHANGES/327.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated the CI runs to better check for test results and to avoid deprecated syntax.

0 commit comments

Comments
 (0)