php-actions / phpunit

Run PHPUnit tests in Github Actions.
108 stars 24 forks source link

Add option to point to a vendored phpunit executable #44

Closed blackwolf12333 closed 1 year ago

blackwolf12333 commented 2 years ago

I'm not really sure how to test local changes to a github action so this change isn't tested in any way. But hopefully this provides a good starting point at least.

Improves the situation described in #43.

g105b commented 1 year ago

Thank you @blackwolf12333 - testing locally is a real pain to be honest. I've set up https://github.com/php-actions/example-phpunit for this purpose, so I'll give this PR a test within that repo as soon as I can, and we can get this useful change merged.

blackwolf12333 commented 1 year ago

Thanks @g105b, I actually tried testing this in our private repo but couldn't get it to work so I'd be great if you could!

Cleaned up the commits from my own testing.

g105b commented 1 year ago

Tested here: https://github.com/php-actions/example-phpunit/actions/runs/3430440488/jobs/5717404543

Works a treat :+1: