Skip to content

feat: add badges for PHPUnit and code quality checks#220

Merged
Morgy93 merged 3 commits into
mainfrom
add-badges
Jul 5, 2026
Merged

feat: add badges for PHPUnit and code quality checks#220
Morgy93 merged 3 commits into
mainfrom
add-badges

Conversation

@Morgy93

@Morgy93 Morgy93 commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

This pull request enhances CI workflows and improves project visibility by updating GitHub Actions triggers, adding automated badge generation for test coverage and mutation score, and enriching the README.md with new status badges. The main changes are grouped below:

CI Workflow Improvements:

  • Updated .github/workflows/phpcs.yml and .github/workflows/phpunit.yml to run on both pull requests and pushes to the main branch, ensuring checks are performed on all mainline changes. [1] [2]
  • Added a new badges job to .github/workflows/phpunit.yml that generates Shields.io-compatible JSON badge data for code coverage and mutation score, and publishes it to a dedicated badges branch for use in README badges.

Documentation and Badge Updates:

  • Expanded the README.md to include new status badges for downloads, PHP version, PHPUnit, code coverage, mutation score, functional tests, Magento compatibility, PHPCS, static analysis, and linting, providing better project status visibility.
  • Minor documentation improvement in the Inspector usage section for clarity.

Copilot AI review requested due to automatic review settings July 5, 2026 07:39
@github-actions github-actions Bot added documentation Improvements or additions to documentation Feature CI/CD labels Jul 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves project visibility by expanding README.md with CI/status badges and enhances CI by running PHPUnit/PHPCS on pushes to main, plus publishing coverage/mutation badge endpoint JSON to a dedicated badges branch.

Changes:

  • Update PHPUnit + PHPCS workflows to run on both pull_request and push to main.
  • Add a badges job to generate Shields.io endpoint JSON for coverage and mutation score and push it to a badges branch.
  • Expand README.md with additional status/quality badges and minor Inspector section formatting.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
README.md Adds multiple project/CI badges and a small Inspector docs tweak.
.github/workflows/phpunit.yml Adds push-to-main trigger and a new job that generates and publishes badge JSON.
.github/workflows/phpcs.yml Adds push-to-main trigger for PHPCS checks.

Comment thread .github/workflows/phpunit.yml
Comment thread .github/workflows/phpunit.yml
Comment thread README.md Outdated
@Morgy93 Morgy93 merged commit f76a7d5 into main Jul 5, 2026
21 checks passed
@Morgy93 Morgy93 deleted the add-badges branch July 5, 2026 07:52
@github-actions github-actions Bot mentioned this pull request Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD documentation Improvements or additions to documentation Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants