wp-config
wp-config copied to clipboard
GitHub Actions: Add `test` workflow
- Git ignore
/.phpunit.cache&/coverage.xml -
composer require --dev phpunit/phpunit:^10.5 -
./vendor/bin/phpunit --migrate-configuration - GitHub Actions: Add
testworkflow
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