greenlion / PHP-SQL-Parser

A pure PHP SQL (non validating) parser w/ focus on MySQL dialect of SQL
BSD 3-Clause "New" or "Revised" License
604 stars 156 forks source link

Added github actions to run phpunit tests #378

Closed xsist10 closed 10 months ago

xsist10 commented 10 months ago

The ci.yml is configured to run the phpunit tests on any push to the repository. This will run the tests for a matrix of PHP versions to ensure all major versions supported are properly tests.

In addition, if the tests all pass, code coverage for the tests will be generated and uploaded as an artifact of the run so they can be downloaded and examined. To support this I needed to specify which directories to be included in the code coverage in the phpunit.xml file.

This merge request does not clean up any of the Travis CI configuration at this point in time.

To see how this will work you can see the output on my local project: https://github.com/xsist10/PHP-SQL-Parser/pull/1

greenlion commented 10 months ago

Thank you for your contribution.