Skip to content

Commit 45d7db7

Browse files
authored
CI: Add "test-pass" job (#1340)
1 parent 973597d commit 45d7db7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,24 @@ jobs:
316316
uses: actions/checkout@v4
317317
- name: Check semver
318318
uses: obi1kenobi/cargo-semver-checks-action@v2
319+
320+
# Dummy job to have a stable name for the "all tests pass" requirement
321+
tests-pass:
322+
name: Tests pass
323+
needs:
324+
- test
325+
- check-tvos
326+
- check-wasm
327+
- test-wasm32-wasip1-thread
328+
- cuda
329+
- msrv
330+
- clippy
331+
- rustfmt
332+
- semver-checks
333+
if: always() # always run even if dependencies fail
334+
runs-on: ubuntu-latest
335+
steps:
336+
# fail if ANY dependency has failed or cancelled
337+
- if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')"
338+
run: exit 1
339+
- run: exit 0

0 commit comments

Comments
 (0)