Skip to content

Commit 13f68d2

Browse files
committed
ci: Add a required-checks context
This copies the approach taken in bcvk, so when we change our CI jobs I don't need to go and manually edit the GH configuration. (A followup step here is to have automation to cut over all repositories to do things this way) Signed-off-by: Colin Walters <[email protected]>
1 parent d596a32 commit 13f68d2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,16 @@ jobs:
200200
with:
201201
name: tmt-log-PR-${{ github.event.number }}-${{ matrix.test_os }}-cfs-${{ env.ARCH }}
202202
path: /var/tmp/tmt
203+
204+
# Sentinel job for required checks - configure this job name in repository settings
205+
required-checks:
206+
if: always()
207+
needs: [cargo-deny, validate, test-integration, test-integration-cfs]
208+
runs-on: ubuntu-latest
209+
steps:
210+
- run: exit 1
211+
if: >-
212+
needs.cargo-deny.result != 'success' ||
213+
needs.validate.result != 'success' ||
214+
needs.test-integration.result != 'success' ||
215+
needs.test-integration-cfs.result != 'success'

0 commit comments

Comments
 (0)