diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ad1449..4db5f43 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,12 @@ jobs: - run: npm ci - run: npm test + # Refuses to call an empty PR green: a branch whose tree equals its base at + # the merge base (a stray commit reverted it) merges cleanly and lands + # nothing. Listed in ci-gate's needs, so it needs no ruleset entry. + nonempty: + uses: mark-brannan/.github/.github/workflows/nonempty-diff.yml@main + # The single required status check, shared across repositories: the # `gate` job of mark-brannan/.github's reusable ci-gate workflow, which fails # unless every result in `needs` is green. The reported context is @@ -32,7 +38,7 @@ jobs: # evaluate when a dependency failed or was skipped, so it reports an explicit # pass or fail of its own rather than inheriting the skip. ci-gate: - needs: [test] + needs: [test, nonempty] if: always() # It reads nothing and writes nothing; the results go in as an input. permissions: {}