Skip to content

Conversation

@tomaj
Copy link
Owner

@tomaj tomaj commented Aug 28, 2025

Summary

This PR replaces the deprecated Code Climate integration with GitHub Pages coverage reporting and adds an automatically updating coverage badge.

Changes

  • 🔄 Replace Code Climate badges with GitHub Actions CI badge and custom coverage badge
  • 📊 Add coverage reporting via GitHub Pages (available at https://tomaj.github.io/bank-mails-parser/)
  • 🤖 Automatic badge updates - coverage percentage updates automatically after each CI run
  • ⬆️ Update GitHub Actions to v4 (fixes deprecation warnings)
  • 🔧 Configure PHPUnit with proper coverage filters
  • Current coverage: 95.13%

Technical Details

  • Added coverage filter to phpunit.xml.dist to properly calculate code coverage
  • Integrated coverage report generation into CI workflow
  • Set up GitHub Pages deployment for HTML coverage reports
  • Coverage badge automatically updates with the actual percentage and appropriate color
  • All GitHub Actions updated to latest versions to fix deprecation issues

Testing

The coverage reporting has been tested in the feature branch and is working correctly:

  • CI runs successfully on all PHP versions (7.4, 8.0, 8.1, 8.2, 8.3)
  • Coverage reports are generated and uploaded
  • Badge updates automatically with the correct percentage
  • GitHub Pages deployment works correctly

Screenshots

Coverage badge shows: !Coverage

- Replace deprecated Code Climate badges with GitHub Actions CI badge
- Add custom coverage badge that automatically updates with test coverage percentage
- Configure PHPUnit to generate HTML coverage reports
- Set up GitHub Pages deployment for coverage reports
- Add GitHub Actions workflow to deploy coverage to Pages
- Update all GitHub Actions to latest versions (v4)
- Add coverage filter to phpunit.xml.dist for proper coverage calculation
- Integrate coverage percentage extraction and badge update into CI workflow
- Coverage reports are now available at https://tomaj.github.io/bank-mails-parser/
- Current test coverage: 95.13%
@tomaj tomaj force-pushed the feature/coverage-reporting branch from 89352c7 to be8833b Compare August 28, 2025 17:28
@tomaj tomaj merged commit 88625d6 into master Aug 28, 2025
12 checks passed
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