php-actions / phpunit

Run PHPUnit tests in Github Actions.
106 stars 23 forks source link

support --coverage-filter flag #60

Closed shish closed 4 months ago

shish commented 4 months ago

Since phpunit 9, --whitelist got replaced with --coverage-filter

Also, since any type of coverage requires a filter, and also requires XDEBUG_MODE=coverage, I have made the flag automatically set the environment variable so that users don't need to figure that out for themselves

g105b commented 4 months ago

Thank you for this @shish , I'll give it a test and then we can merge it in.

shish commented 4 months ago

For reference, I've tried it myself here: https://github.com/shish/gqla/pull/5/files - with results at https://github.com/shish/gqla/actions/runs/8055770271/job/22003355807?pr=5

g105b commented 4 months ago

Brilliant work, thank you!