From b0eba129e6acb62cb153a322027092304f9290de Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 24 Feb 2023 14:48:58 -0800 Subject: [PATCH] .github/workflows: add a pass/fail verdict job to the test workflow Github requires explicitly listing every single job within a workflow that is required for status checks, instead of letting you list entire workflows. This is ludicrous, and apparently this nonsense is the workaround. Signed-off-by: David Anderson --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5cb5c5bfa..a24605660 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -404,3 +404,27 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + + check_mergeability: + if: always() + runs-on: ubuntu-22.04 + needs: + - android + - test + - windows + - vm + - cross + - ios + - wasm + - fuzz + - depaware + - go_generate + - go_mod_tidy + - licenses + - staticcheck + steps: + - name: Decide if change is okay to merge + if: github.event_name != 'push' + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }}