Skip to content

Conversation

@stephanprobst
Copy link
Owner

Summary

Add coverage threshold enforcement to fail builds when coverage drops below minimum levels.

Thresholds

  • Line coverage: 85% minimum
  • Branch coverage: 75% minimum

Behavior

  • Parses Cobertura XML to extract coverage percentages
  • Fails build with ::error:: annotation if below threshold
  • Shows coverage summary in job output even if threshold fails (if: always())
  • Displays ::notice:: when thresholds are met

@stephanprobst stephanprobst merged commit 21ab1bd into main Jan 9, 2026
1 check passed
@stephanprobst stephanprobst deleted the feature/coverage-thresholds branch January 9, 2026 15:34
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