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"