mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-15 12:18:57 +00:00
add aggregation job for all matrix released module tests to define a branch protection rule
This commit is contained in:
15
.github/workflows/go.yml
vendored
15
.github/workflows/go.yml
vendored
@@ -141,3 +141,18 @@ jobs:
|
|||||||
# TODO (#4001): replace specific modules above with this once Windows tests are passing.
|
# TODO (#4001): replace specific modules above with this once Windows tests are passing.
|
||||||
if: ${{ !(matrix.os == 'windows-latest' && (matrix.module == 'api' || matrix.module == 'kustomize')) }}
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user