php-actions / phpunit

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

bootstrap #13

Closed Lewiscowles1986 closed 4 years ago

Lewiscowles1986 commented 4 years ago

[warning]Unexpected input 'bootstrap', valid inputs are ['entryPoint', 'args', 'config', 'junit', 'memory']

Run php-actions/phpunit@v1
  with:
    config: phpunit.xml
    bootstrap: tests/bootstrap.php
    junit: test/phpunit/_junit/junit.xml
    memory: 512M
g105b commented 4 years ago

Thank you for the report. I will implement this feature for the next release.

FYI, the release version is going to match PHPUnit's official release numbers, to sync the functionality, so the next release will be tagged v9.

Lewiscowles1986 commented 4 years ago

I was quite surprised at how lightweight this is

g105b commented 4 years ago

Github actions have got to come on a long way to compete with other products out there, but there is a lot of movement. I personally think Actions were release a little prematurely. The problem you've come across in this issue is how there is no way to provide arbitrary flags to actions, and it's down to the maintainers to put all possibilities into the yaml config.

I have talked with Github about this, and there seems to be a lot of improvement coming soon. Fingers crossed that the community have been listened to!

g105b commented 4 years ago

Hello @Lewiscowles1986 ,

Firstly let me apologise that it's taken me such a long time to get around to this. I now have the time to spend on open source contributions, and I'm happy to say that this issue has been resolved, and I hope you will find the repository useful again.

I've updated the readme with a section on versioning. Basically, your issue was caused by your composer.json file specifying a different major version release of PHPUnit. Now, you can choose the same version within the Github Action yaml configuration.

Please let me know how you get on by replying here.

Cheers, Greg.

Lewiscowles1986 commented 4 years ago

Thanks Greg, I'll try it out. About the time I don't pay for... I think it is I who should thank you! I'd moved on and forgotten about, but will try today or tomorrow