From d445b4e5da21715e86853430e62794a8c7a8bff5 Mon Sep 17 00:00:00 2001 From: Igor Fedoronchuk Date: Wed, 8 Apr 2026 09:51:35 +0200 Subject: [PATCH] Add ci-success aggregator job for branch protection Adds a single `CI success` job that depends on all matrix jobs and the coverage job. Branch protection can then require just this one check instead of enumerating every matrix combination, so adding or removing a Ruby/Rails/ActiveAdmin version does not require updating protection rules. --- .github/workflows/test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d65a852..4064645 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,3 +43,16 @@ jobs: with: name: coverage path: coverage/ + ci-success: + name: CI success + if: always() + needs: [test, coverage] + runs-on: ubuntu-latest + steps: + - name: Check matrix job results + run: | + if [ "${{ needs.test.result }}" != "success" ] || [ "${{ needs.coverage.result }}" != "success" ]; then + echo "One or more required jobs failed" + exit 1 + fi + echo "All required jobs passed"