Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH Actions/CI: run the test suite against PHP 8.1, 8.2 and 8.3 #363

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented May 4, 2023

⚠️ This PR depends on PR #361 and can be marked "Ready for review" (and rebased) once PR #361 has been merged.


PR #361 should fix the remaining (known) PHP 8.1 error.

Once that PR has been merged, the CI runs against PHP 8.1, 8.2 and 8.3 should pass.

To that end, I'm adding builds against PHP 8.1, 8.2 and 8.3.

I'm also moving the code coverage recording from PHP 7.4 to PHP 8.2 to ensure high/low PHP is measured and adding an extra variant with Xdebug on high PHP too.

As PHP 8.3 is still in flux, builds against it are still allowed to fail.

jrfnl added 2 commits May 4, 2023 14:34
The tests were failing on PHP 8.1 due to a `file_exists(): Passing null to parameter php-coveralls#1 ($filename) of type string is deprecated` notice coming from the `JobsRepository::dumpJsonFile()` method.

While it would probably be unlikely for this error condition ever to be hit in a real life situation, it is something which is likely to happen in the tests and well, a little defensive coding goes a long way.

With this fix in place, the tests now pass on PHP 8.1 and PHP 8.2 and compatibility with both can be declared. 🎉
PR 361 should fix the remaining (known) PHP 8.1 error.

Once that PR has been merged, the CI runs against PHP 8.1, 8.2 and 8.3 should pass.

To that end, I'm adding builds against PHP 8.1, 8.2 and 8.3.

I'm also moving the code coverage recording from PHP 7.4 to PHP 8.2 to ensure high/low PHP is measured and adding an extra variant with `Xdebug` on high PHP too.

As PHP 8.3 is still in flux, builds against it are still allowed to fail.
@jrfnl
Copy link
Contributor Author

jrfnl commented May 23, 2023

@keradus Anything I can do to move this PR forward ?

@keradus keradus marked this pull request as ready for review July 15, 2023 21:31
@keradus keradus merged commit f08f945 into php-coveralls:master Jul 15, 2023
22 checks passed
@jrfnl jrfnl deleted the feature/ghactions-test-against-php-8.1-8.2-8.3 branch July 15, 2023 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants