Skip to content

Commit e4873d0

Browse files
authored
ci: add gate job for integration test branch protection (#169)
Add a single trailing job that waits for the full matrix of jobs to complete, so only one job needs to be required in GitHub branch protection rules. Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent 850311b commit e4873d0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/integration-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,17 @@ jobs:
5151
path: 'internal/testintegration/*.coverage.*.out'
5252
name: 'integration.coverage.${{ matrix.os }}'
5353
retention-days: 1
54+
55+
# Single gate job for branch protection rules
56+
integration-test:
57+
name: integration test
58+
needs: test
59+
if: always()
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Check matrix results
63+
run: |
64+
if [ "${{ needs.test.result }}" != "success" ]; then
65+
echo "Matrix jobs failed or were cancelled"
66+
exit 1
67+
fi

0 commit comments

Comments
 (0)