Skip to content

Commit d3c98cb

Browse files
authored
Add a check that only succeeds if all matrix tests pass (#1175)
* Add a check that only succeeds if all matrix tests pass This is required so that we can make the checks mandatory in branch protection - otherwise the names will keep changing * Tweak name
1 parent ce79fc9 commit d3c98cb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/go-ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,18 @@ jobs:
3030
- run: |
3131
go test -race -v ./...
3232
go test -v ./...
33+
34+
# This job provides a stable name for branch protection rules
35+
# It will only pass if all Go CI matrix tests above pass
36+
go-test-complete:
37+
runs-on: ubuntu-latest
38+
needs: go-test
39+
if: always()
40+
steps:
41+
- name: Check Go CI results
42+
run: |
43+
if [[ "${{ needs.go-test.result }}" != "success" ]]; then
44+
echo "One or more Go CI tests failed"
45+
exit 1
46+
fi
47+
echo "All Go CI tests passed"

0 commit comments

Comments
 (0)