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: remove "fix integration test build on PHP >= 8.0" #121

Merged
merged 1 commit into from
Jan 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 9 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,18 @@ jobs:
composer-options: "yoast/wp-test-utils --with-dependencies"

### Install type 2.
# Note: the steps for this type have (temporarily) been changed to get round
# a Composer bug: https://github.com/composer/composer/issues/10394
# Once that bug has been fixed, it is recommended to revert these steps to the
# more optimized version which was previously in place.
- name: "Install type 2: install Composer dependencies - WP < 5.9 with PHP >= 8.0"
- name: "Install type 2: conditionally require a higher PHPUnit version"
if: ${{ steps.composer_toggle.outputs.TYPE == '2' }}
# This is just a plain install to still be able to use the cache for the most part.
uses: ramsey/composer-install@v2
run: composer require --dev phpunit/phpunit:"^7.5" --no-update --ignore-platform-req=php

- name: "Install type 2: remove wp-test-utils (temporary - Composer bug #10394)"
if: ${{ steps.composer_toggle.outputs.TYPE == '2' }}
run: composer remove --dev yoast/wp-test-utils --no-interaction

- name: "Install type 2: reinstall wp-test-utils with specific PHPUnit version (temporary - Composer bug #10394)"
- name: "Install type 2: install Composer dependencies - WP < 5.9 with PHP >= 8.0"
if: ${{ steps.composer_toggle.outputs.TYPE == '2' }}
run: composer require --dev yoast/wp-test-utils:"^1.0.0" phpunit/phpunit:"^7.5" --update-with-dependencies --ignore-platform-reqs --no-interaction
uses: ramsey/composer-install@v2
with:
# Force a `composer update` run.
dependency-versions: "highest"
# But make it selective.
composer-options: "yoast/wp-test-utils phpunit/phpunit --with-dependencies --ignore-platform-req=php"

### Install type 3.
- name: "Install type 3: install Composer dependencies - WP < 5.9 with PHP < 8.0"
Expand Down