Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tangrufus
Copy link
Member

@tangrufus tangrufus commented Feb 22, 2025

  1. Git ignore /.phpunit.cache & /coverage.xml
  2. composer require --dev phpunit/phpunit:^10.5
  3. ./vendor/bin/phpunit --migrate-configuration
  4. GitHub Actions: Add test workflow

Example workflow run: https://github.com/tangrufus/wp-config/actions/runs/13475857186
Example coverage report: https://coveralls.io/jobs/160825043


PHP versions are hardcoded in the workflow.

If we want to be lazy, we could use https://github.com/typisttech/php-matrix-action
Example: https://github.com/typisttech/wordfence-api/blob/68a230833b5c1a9aca5e46bfa595bef1304435d5/.github/workflows/test.yml#L19-L39

@tangrufus tangrufus marked this pull request as ready for review February 22, 2025 19:21
@tangrufus tangrufus requested a review from retlehs February 22, 2025 19:21
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.

1 participant