From 08dea911bd8e9dd8485843f8bfd3da6f19cc2579 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 16 Jul 2023 14:13:41 +0200 Subject: [PATCH] CI: Add check that verifies the results of other checks To properly use merge queues, it is necessary to mark certain checks as "required" in the branch protection rules. However, this doesn't scale with matrix jobs and would require manual tweaks of the CI jobs change. The new analyze job simplifies this by allowing the branch protection rule just check for that job. All further dependencies are then configured within the CI config. --- .github/workflows/tests.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bb9945891..2ec4591f0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -269,6 +269,21 @@ jobs: go mod tidy git diff --exit-code go.mod go.sum + analyze: + name: Analyze results + needs: [test, cross_compile, lint] + if: always() + + permissions: # no need to access code + contents: none + + runs-on: ubuntu-latest + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe + with: + jobs: ${{ toJSON(needs) }} + docker: name: docker runs-on: ubuntu-latest