From 7177f0c2a1f4cdda38e8de87dcc2ecf0f3e48377 Mon Sep 17 00:00:00 2001 From: George Hickman Date: Fri, 3 Nov 2023 10:00:08 +0000 Subject: [PATCH] Use required-checks in CI --- .github/workflows/main.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4afaee57..048dc7f0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,6 +27,20 @@ jobs: python-version: "3.11" install-just: true - name: Run tests -# env: # Add environment variables required for tests run: | just test + + required-checks: + if: always() + + needs: + - check + - test + + runs-on: Ubuntu-latest + + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 + with: + jobs: ${{ toJSON(needs) }}