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
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,29 @@ jobs:
name: coverage-report
path: coverage.xml
retention-days: 7

# The ONLY job branch protection requires. Add every new job to `needs:` here
# rather than to the protection settings, so CI can evolve without touching
# repository configuration.
#
# It requires SUCCESS rather than testing for failure. `contains(needs.*.result,
# 'failure')` does not match 'skipped', so an `if: false` on a real job produces a
# fully green pull request with nothing checked -- measured in a sibling repo.
# This workflow has no path filtering, so no job here skips legitimately; a repo
# that does filter needs the tolerant form instead.
ok:
name: ok
if: always()
needs: [lint, typecheck, test]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Fail unless every upstream job succeeded
if: >-
needs.lint.result != 'success' ||
needs.typecheck.result != 'success' ||
needs.test.result != 'success'
run: exit 1
- name: Pass
run: echo 'All checks passed'