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: run tests against PHP 8.1 #501

Merged
merged 2 commits into from
Jul 30, 2021

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 21, 2021

Now PR #446 has been merged and the PHPUnit version requirements widened, we can start running the tests against PHP 8.1.

For the time being - until PHP 8.1 is actually released - these builds are allowed to fail (experimental), though fixing as much as possible as soon as possible, would be a good idea ;-)

Fixes #498


Edit: I've added a second commit.

GH Actions: set error reporting to E_ALL

Turns out the default setting for error_reporting used by the SetupPHP action is error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT and display_errors is set to Off.

For the purposes of CI, I'd recommend running with E_ALL and display_errors=On to ensure all PHP notices are shown.

@jrfnl jrfnl added this to the 2.0.0 milestone Jun 21, 2021
@jrfnl
Copy link
Member Author

jrfnl commented Jun 21, 2021

There's something weird going on here as the PHP 8.1 build should show 16 failing tests... I've opened an issue with the Setup PHP action runner: shivammathur/setup-php#469

@jrfnl jrfnl force-pushed the feature/498-ghactions-add-build-against-php-8.1 branch from f6c61d2 to 980b3e3 Compare June 21, 2021 18:43
@jrfnl
Copy link
Member Author

jrfnl commented Jun 22, 2021

The second commit I added now got the tests to actually show the expected errors. PRs #499 and #500 are already open to fix the issues.

@jrfnl jrfnl force-pushed the feature/498-ghactions-add-build-against-php-8.1 branch from 980b3e3 to 7759ca8 Compare July 24, 2021 20:46
@jrfnl
Copy link
Member Author

jrfnl commented Jul 24, 2021

New issues introduced in PHP 8.1.0-beta1 are addressed in PR #505

@jrfnl jrfnl force-pushed the feature/498-ghactions-add-build-against-php-8.1 branch from 7759ca8 to 2997268 Compare July 30, 2021 10:18
Now PR 446 has been merged and the PHPUnit version requirements widened, we can start running the tests against PHP 8.1.

For the time being - until PHP 8.1 is actually released - these builds are allowed to fail (experimental), though fixing as much as possible as soon as possible, would be a good idea ;-)

Fixes 498
Turns out the default setting for `error_reporting` used by the SetupPHP action is `error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT` and `display_errors` is set to `Off`.

For the purposes of CI, I'd recommend running with `E_ALL` and `display_errors=On` to ensure **all** PHP notices are shown.
@jrfnl jrfnl force-pushed the feature/498-ghactions-add-build-against-php-8.1 branch from 2997268 to 1bb0e93 Compare July 30, 2021 10:26
@schlessera schlessera merged commit 43c2e45 into develop Jul 30, 2021
@schlessera schlessera deleted the feature/498-ghactions-add-build-against-php-8.1 branch July 30, 2021 10:29
@jrfnl jrfnl mentioned this pull request Aug 27, 2021
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GH Actions: start testing against PHP 8.1
2 participants