Skip to content

Commit 1beb390

Browse files
committed
ci: add a Results step to work around GH protection rules
It's not possible to add a matrix step as a check to branch protection rules. Add an extra step to work around this. Signed-off-by: Lorenz Bauer <[email protected]>
1 parent 6021836 commit 1beb390

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,3 +382,24 @@ jobs:
382382
name: Test Results (windows ${{ matrix.tag }})
383383
path: junit.xml
384384

385+
results:
386+
name: Results
387+
runs-on: ubuntu-latest
388+
needs:
389+
- build-and-lint
390+
- cross-build
391+
- build-docs
392+
- test-on-prev-go
393+
- test-on-arm64
394+
- linux-test
395+
- windows-test
396+
if: always()
397+
steps:
398+
- name: Check Results
399+
run: |
400+
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
401+
echo "Some checks failed"
402+
exit 1
403+
else
404+
echo "All checks passed successfully"
405+
fi

0 commit comments

Comments
 (0)