Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: {}
Expand Down