From fdc40d016acb719be6b96e5cd1ab4a7dd0687548 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 4 Oct 2022 17:22:56 +0200 Subject: build: fix the branch protection gate check @ GHA This adds a GHA job that reliably determines if all the required dependencies have succeeded or not. It is now in use in aiohttp (and other aio-libs projects), CherryPy, some of the Ansible repositories, all of the jaraco's projects (like `setuptools`, `importlib_metadata`), some of hynek's projects, some PyCQA, PyCA, PyPA and pytest projects, a few AWS Labs projects (to my surprise). The story behind this is explained in more detail at https://github.com/marketplace/actions/alls-green#why. --- .github/workflows/testsuite.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to '.github/workflows/testsuite.yml') diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 81b9e1bb..feb6676d 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -91,13 +91,18 @@ jobs: exit 1 fi - # A final step to give a simple name for required status checks. + # This job aggregates test results. It's the required check for branch protection. + # https://github.com/marketplace/actions/alls-green#why # https://github.com/orgs/community/discussions/33579 success: - needs: tests - runs-on: ubuntu-latest name: Tests successful + if: always() + needs: + - tests + runs-on: ubuntu-latest steps: - - name: "Success" - run: | - echo Tests successful + - name: Decide whether the needed jobs succeeded or failed + # uses: re-actors/alls-green@v1.2.1 + uses: re-actors/alls-green@13b4244b312e8a314951e03958a2f91519a6a3c9 + with: + jobs: ${{ toJSON(needs) }} -- cgit v1.2.1