wp-config icon indicating copy to clipboard operation
wp-config copied to clipboard

GitHub Actions: Add `test` workflow

Open tangrufus opened this issue 11 months ago • 0 comments

  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 avatar Feb 22 '25 19:02 tangrufus