Skip to content

Commit

Permalink
CI: Add "test-pass" job (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
NobodyXu authored Jan 2, 2025
1 parent 973597d commit 45d7db7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,24 @@ jobs:
uses: actions/checkout@v4
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2

# Dummy job to have a stable name for the "all tests pass" requirement
tests-pass:
name: Tests pass
needs:
- test
- check-tvos
- check-wasm
- test-wasm32-wasip1-thread
- cuda
- msrv
- clippy
- rustfmt
- semver-checks
if: always() # always run even if dependencies fail
runs-on: ubuntu-latest
steps:
# fail if ANY dependency has failed or cancelled
- if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')"
run: exit 1
- run: exit 0

0 comments on commit 45d7db7

Please sign in to comment.