add aggregation job for all matrix released module tests to define a branch protection rule

This commit is contained in:
koba1t
2025-11-21 00:17:21 +09:00
parent 77cf6d6b88
commit e6621df4d5

View File

@@ -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"