-
Notifications
You must be signed in to change notification settings - Fork 100
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
Fix PHP CI including PHPCS and PHPUnit; bump PHP/WP versions #1095
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
76b4c72
Bump minimum WP and PHP versions; update test matrix
westonruter 4ec1374
Run composer update
westonruter a112b86
Upgrade yoast/wp-test-utils to 1.2.0
westonruter 31f1ebe
Upgrade wp-coding-standards/wpcs:3.0.1 automattic/vipwpcs:3.0.0
westonruter f84c05b
Run wpcs update
westonruter 8716706
Run phpcbf
westonruter 43ee911
Fix phpcs issues
westonruter 2ed35c9
Bump platform.php to 7.0 and run composer update
westonruter 0b0e41f
Set platform.php to 8.0
westonruter 531f897
Use set_up and tear_down in tests
westonruter 94f0288
Update test:php commands for latest wp-env
westonruter 4fc0200
Normalize composer.json
westonruter 9ffbeab
Add .phpunit.result.cache
thelovekesh 72b797c
Fix dynamic property deprecation warnings
thelovekesh 92abfc5
Setup global phpunit in workflows
thelovekesh 5c5b8dd
Fix WP_CLI logger class not found issue
thelovekesh fb95cfa
Fix local phpunit conflict with global
thelovekesh 96a6b84
Update WP laoding in testsuite
thelovekesh 100e281
Add WP_TESTS_DIR env to workflows
thelovekesh e513906
Update coverage driver to xdebug
thelovekesh b7486c7
Downgrade php emulation to 7.0
thelovekesh cdc2d49
Update version compare to skip tests
thelovekesh bff5dcd
Add verbosity to phpunit command
thelovekesh 9fa812d
Add PHPUnit 9 phar for local development
thelovekesh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to emulate it to
7.0
else it can download deps that don't support PHP 7.0.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Humm. I had updated the
composer.lock
file for PHP 8.0 so we'll need to update it for 7.0. However, when I do so then I get errors when running tests locally:If I change it to 7.4 and run
composer update
then I can run PHPUnit successfully, even when I'm running PHP 8.1.Can we change this then to (and run
composer update
):If that means removing tests for PHP 7.0-7.3, I'm fine with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's because the PHPUnit version is not compatible with the PHP version inside the container. So I think we need to use updated PHPUnit for local testing.
So we have two options now:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now PHPUnit version is customizable in local development with - 9fa812d
With this, we can download any PHPUnit version and keep the tests for PHP 7.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clever!