Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH Actions/CI: run the test suite against PHP 8.1, 8.2 and 8.3 (#363)
* Fix PHP 8.1 compatibility The tests were failing on PHP 8.1 due to a `file_exists(): Passing null to parameter #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. 🎉 * GH Actions/CI: run the test suite against PHP 8.1, 8.2 and 8.3 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. --------- Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
- Loading branch information