From 45d7db73966ebcbdca0d3d496214217094090cc2 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Thu, 2 Jan 2025 18:10:32 +1000 Subject: [PATCH] CI: Add "test-pass" job (#1340) --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef7fb53a..79d7d598 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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