Skip to content

Commit b53635a

Browse files
authored
Add a ci-ok job that summarizes the CI result (#8899)
1 parent 5e3cc82 commit b53635a

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,3 +662,24 @@ jobs:
662662
node src/BeltTest.mjs
663663
shell: bash
664664
working-directory: ${{ steps.tmp-dir.outputs.path }}
665+
666+
# The single CI check that the master ruleset requires. Matrix job names
667+
# contain runner labels, so requiring this job instead keeps the ruleset
668+
# unchanged when runners or jobs change. It runs even when a needed job fails
669+
# or the run is cancelled, because a skipped required check counts as passed.
670+
ci-ok:
671+
if: ${{ always() }}
672+
needs:
673+
- build-compiler
674+
- pkg-pr-new
675+
- api-docs
676+
- test-installation-npm
677+
- test-installation-pnpm
678+
runs-on: ubuntu-26.04
679+
steps:
680+
- name: Check that all needed jobs succeeded
681+
env:
682+
NEEDS: ${{ toJSON(needs) }}
683+
run: |
684+
jq -r 'to_entries[] | "\(.key): \(.value.result)"' <<< "$NEEDS"
685+
jq -e 'all(.[]; .result == "success")' <<< "$NEEDS" > /dev/null

0 commit comments

Comments
 (0)