diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4063fd9..8729561 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,3 +29,18 @@ jobs: run: python .github/scripts/validate-static.py . - name: Test static validation regressions run: python .github/scripts/test-validate-static.py + + required-ci: + name: CI / Required + # Always report a result, including when a prerequisite failed or was skipped. + if: ${{ always() && github.event_name == 'pull_request' }} + needs: + - validate + runs-on: ubuntu-26.04 + timeout-minutes: 5 + permissions: {} + steps: + - name: Require every PR validation job to pass + env: + RESULTS: ${{ toJSON(needs.*.result) }} + run: jq --exit-status 'length > 0 and all(. != "failure" and . != "cancelled")' <<< "$RESULTS"