From e6621df4d518834af8d668ff2f6756fac812163a Mon Sep 17 00:00:00 2001 From: koba1t Date: Fri, 21 Nov 2025 00:17:21 +0900 Subject: [PATCH] add aggregation job for all matrix released module tests to define a branch protection rule --- .github/workflows/go.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2b8c4471f..26a78c1a2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -140,4 +140,19 @@ jobs: run: ${{ matrix.test-cmd }} # TODO (#4001): replace specific modules above with this once Windows tests are passing. if: ${{ !(matrix.os == 'windows-latest' && (matrix.module == 'api' || matrix.module == 'kustomize')) }} - working-directory: ./${{ matrix.module }} + working-directory: ./${{ matrix.module }} + + # Aggregation matrix tests from test-modules for branch protection rules + test-modules-summary: + name: Test Summary + runs-on: ubuntu-latest + needs: test-modules + if: always() + steps: + - name: Check test results + run: | + if [[ "${{ needs.test-modules.result }}" != "success" ]]; then + echo "Some tests failed or were cancelled" + exit 1 + fi + echo "All tests passed successfully"