File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8989 - name : cargo publish check spirv-tools
9090 run : cargo release patch --allow-branch=* --manifest-path spirv-tools/Cargo.toml
9191
92+ # This allows us to have a single job we can branch protect on, rather than needing
93+ # to update the branch protection rules when the test matrix changes
94+ test_success :
95+ runs-on : ubuntu-24.04
96+ needs : [lint, test, deny-check, publish-check]
97+ # Hack for buggy GitHub Actions behavior with skipped checks: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
98+ if : ${{ always() }}
99+ steps :
100+ # Another hack is to actually check the status of the dependencies or else it'll fall through
101+ - run : |
102+ echo "Checking statuses..."
103+ [[ "${{ needs.lint.result }}" == "success" ]] || exit 1
104+ [[ "${{ needs.test.result }}" == "success" ]] || exit 1
105+ [[ "${{ needs.deny-check.result }}" == "success" ]] || exit 1
106+ [[ "${{ needs.publish-check.result }}" == "success" ]] || exit 1
107+
92108defaults :
93109 run :
94110 shell : bash
You can’t perform that action at this time.
0 commit comments