diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4fce2d48..b2392a21 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,3 +64,20 @@ jobs: - name: Run integration tests run: npm run test:integration + + # Aggregator so branch protection can require a single "Tests" check + # instead of every matrix combination. + tests: + name: Tests + needs: [test, test-ui5cli-matrix] + if: always() + runs-on: ubuntu-24.04 + steps: + - name: Check matrix result + run: | + if [ "${{ needs.test.result }}" != "success" ] || \ + [ "${{ needs.test-ui5cli-matrix.result }}" != "success" ]; then + echo "test: ${{ needs.test.result }}" + echo "test-ui5cli-matrix: ${{ needs.test-ui5cli-matrix.result }}" + exit 1 + fi