Skip to content

ci: gate PRs on 100% patch coverage#26

Merged
mastermanas805 merged 1 commit into
masterfrom
ci/patch-coverage-100-gate
May 22, 2026
Merged

ci: gate PRs on 100% patch coverage#26
mastermanas805 merged 1 commit into
masterfrom
ci/patch-coverage-100-gate

Conversation

@mastermanas805
Copy link
Copy Markdown
Member

Summary

  • Adds diff-cover patch-coverage enforcement: every changed line in a PR diff must be covered by a test (--fail-under=100 vs origin/master).
  • Re-runs the node test runner with --enable-source-maps so the built-in lcov reporter maps coverage back to src/*.ts (paths + line numbers) via the emitted .js.map files. Without it, lcov reports dist-test/*.js with JS line numbers and the gate would silently no-op.
  • Node 22 kept; fetch-depth: 0 so diff-cover resolves the base ref.

New permanent org mandate.

🤖 Generated with Claude Code

Adds diff-cover patch-coverage enforcement: every changed line in a PR must be
covered by a test (--fail-under=100 vs origin/master). The node test runner is
re-run with --enable-source-maps so the built-in lcov reporter maps coverage
back to the src/*.ts sources (paths + line numbers) via the emitted .js.map
files — otherwise lcov reports dist-test/*.js and the gate no-ops. Node 22 kept.
New org mandate.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mastermanas805 mastermanas805 merged commit 951a0bc into master May 22, 2026
9 checks passed
@mastermanas805 mastermanas805 deleted the ci/patch-coverage-100-gate branch May 22, 2026 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants