From d4aec48a881557c9971eb243299b0cf5297bbb16 Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Sat, 16 May 2026 12:01:41 +0200 Subject: [PATCH] ci: add alls-green action --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6d368f..e75e845 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,3 +120,20 @@ jobs: - uses: rustsec/audit-check@v2 with: token: ${{ secrets.GITHUB_TOKEN }} + + # Check that all tests defined above pass. This makes it easy to set a single "required" test in branch + # protection instead of having to update it frequently. See https://github.com/re-actors/alls-green#why. + check: + name: Checks pass + if: always() + needs: + - test + - fmt + - clippy + - msrv + - audit + runs-on: ubuntu-latest + steps: + - uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # ratchet:re-actors/alls-green@v1.2.2 + with: + jobs: ${{ toJSON(needs) }}