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

CI: Run tests against WP 5.7 #11740

Merged
merged 1 commit into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
matrix:
# TODO: add back Firefox once support is more mature.
browser: ['chrome']
wp: ['5.5']
wp: ['5.7']
snapshots: [false]
# We want to split up the tests into 2 parts running in parallel.
shard: ['1/2', '2/2']
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests-unit-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
experimental: false

- php: '7.2'
wp: '5.5'
wp: '5.7'
experimental: false

- php: '8.0'
Expand Down Expand Up @@ -119,15 +119,15 @@ jobs:
#
# | WP / PHP | PHPUnit |
# |-----------|---------|
# | 5.5 / 7.2 | 7 |
# | 5.7 / 7.2 | 7 |
# | 5.9 / 7.2 | 8 |
# | 5.9 / 7.4 | 9 |
# | * / 8 | 9 |
#
# See https://make.wordpress.org/core/handbook/references/phpunit-compatibility-and-wordpress-versions/
- name: Update PHPUnit
run: |
if [[ $WP_VERSION == "5.5" && $PHP_VERSION == "7.2" ]]; then
if [[ $WP_VERSION == "5.7" && $PHP_VERSION == "7.2" ]]; then
echo "Installing PHPUnit 7.5.x"
composer require --ignore-platform-reqs --no-interaction --no-scripts phpunit/phpunit:^7.5 --with-dependencies
elif [[ $PHP_VERSION == "7.2" ]]; then
Expand Down