Skip to content

Commit 6aa0ab2

Browse files
cknittaspeddro
authored andcommitted
Add a ci-ok job that summarizes the CI result (rescript-lang#8899)
Signed-off-by: Pedro Castro <aspeddro@gmail.com>
1 parent 96d1da8 commit 6aa0ab2

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
@@ -715,3 +715,24 @@ jobs:
715715
node src/BeltTest.mjs
716716
shell: bash
717717
working-directory: ${{ steps.tmp-dir.outputs.path }}
718+
719+
# The single CI check that the master ruleset requires. Matrix job names
720+
# contain runner labels, so requiring this job instead keeps the ruleset
721+
# unchanged when runners or jobs change. It runs even when a needed job fails
722+
# or the run is cancelled, because a skipped required check counts as passed.
723+
ci-ok:
724+
if: ${{ always() }}
725+
needs:
726+
- build-compiler
727+
- pkg-pr-new
728+
- api-docs
729+
- test-installation-npm
730+
- test-installation-pnpm
731+
runs-on: ubuntu-26.04
732+
steps:
733+
- name: Check that all needed jobs succeeded
734+
env:
735+
NEEDS: ${{ toJSON(needs) }}
736+
run: |
737+
jq -r 'to_entries[] | "\(.key): \(.value.result)"' <<< "$NEEDS"
738+
jq -e 'all(.[]; .result == "success")' <<< "$NEEDS" > /dev/null

0 commit comments

Comments
 (0)