An example project that uses php-actions/phpunit
This is a trivial project that implements the FizzbuzzKata.
Check out the Actions tab in the Github repository to see the past actions workflows and their outputs.
There are unit tests stored within the test
directory, along with a phpunit.xml
.
The file at .github/workflows/ci.yml
shows how to use php-actions/phpunit - take note of the uses: php-actions/phpunit@v9
line.
Versions of PHPUnit and all options are available to configure. Please see the php-actions/phpunit documentation for more information!
The GitHub Action tests are executed in the ci.yml
file where the TEST_NAME environment variable is declared, along with any other PHPUnit configuration.
Click the Actions tab at the top of this repository to view the latest test runs.
If you found this repository helpful, please consider sponsoring the developer.