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: fix tests not running on PHP 8.1 and other tweaks #111

Merged

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Aug 15, 2021

GH Actions: cache composer dependencies

... for lower network resource use and faster builds.

GH Actions: fix tests not running on PHP 8.1

The tests weren't running on PHP 8.1 because PHPUnit 5.x was being installed as not all PHPUnit dependencies have declared PHP 8.1 compatibility yet.

Fixed by running composer install with the --ignore-platform-requirements option for now.

In the semi-near future, it should be possible to remove the special casing of PHP 8.1.

GH Actions: set error reporting to -1

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 -1 and display_errors=On to ensure all PHP notices are shown.

Without this setting PHP 8.1 deprecation notices are not shown.

GH Actions: minor other tweaks

  • Make the name of the job more descriptive.
  • Make the name of the individual builds more descriptive.
  • Make it explicit that Xdebug nor PCOV should be installed by setup PHP as code coverage is not being recorded.
  • Make it explicit that no PHP tooling is installed by setup PHP.

jrfnl added 4 commits August 15, 2021 13:26
... for lower network resource use and faster builds.
The tests weren't running on PHP 8.1 because PHPUnit 5.x was being installed as not all PHPUnit dependencies have declared PHP 8.1 compatibility yet.

Fixed by running `composer install` with the `--ignore-platform-requirements` option for now.

In the semi-near future, it should be possible to remove the special casing of PHP 8.1.
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 `-1` and `display_errors=On` to ensure **all** PHP notices are shown.

Without this setting PHP 8.1 deprecation notices are not shown.
* Make the name of the job more descriptive.
* Make the name of the individual builds more descriptive.
* Make it explicit that Xdebug nor PCOV should be installed by setup PHP as code coverage is not being recorded.
* Make it explicit that no PHP tooling is installed by setup PHP.
@antecedent antecedent merged commit 5fe1785 into antecedent:master Aug 15, 2021
@jrfnl jrfnl deleted the feature/gh-actions-fix-php-8.1-build branch August 15, 2021 11:58
@jrfnl jrfnl added this to the 2.1.13 milestone Dec 25, 2021
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.

2 participants