From 943350a71318763e0f9c6a7b795c3f66af963849 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sun, 25 Aug 2024 17:23:55 +1000 Subject: [PATCH] Add job test-pass for stable job name Which can be used in github branch protection --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 437caafa9d3..5fd796872ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -246,3 +246,24 @@ jobs: set -x git status git diff --exit-code + + # Dummy job to have a stable name for the "all tests pass" requirement + tests-pass: + name: Tests pass + needs: + - pure-rust-build + - test + - test-fast + - test-32bit + - installation + - lint + - cargo-deny + - wasm + - check-packetline + 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