Skip to content

Commit e6621df

Browse files
committed
add aggregation job for all matrix released module tests to define a branch protection rule
1 parent 77cf6d6 commit e6621df

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/go.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,19 @@ jobs:
140140
run: ${{ matrix.test-cmd }}
141141
# TODO (#4001): replace specific modules above with this once Windows tests are passing.
142142
if: ${{ !(matrix.os == 'windows-latest' && (matrix.module == 'api' || matrix.module == 'kustomize')) }}
143-
working-directory: ./${{ matrix.module }}
143+
working-directory: ./${{ matrix.module }}
144+
145+
# Aggregation matrix tests from test-modules for branch protection rules
146+
test-modules-summary:
147+
name: Test Summary
148+
runs-on: ubuntu-latest
149+
needs: test-modules
150+
if: always()
151+
steps:
152+
- name: Check test results
153+
run: |
154+
if [[ "${{ needs.test-modules.result }}" != "success" ]]; then
155+
echo "Some tests failed or were cancelled"
156+
exit 1
157+
fi
158+
echo "All tests passed successfully"

0 commit comments

Comments
 (0)