From bdc8b60dfea99ba5d6847610e2325bb5ac58c1d5 Mon Sep 17 00:00:00 2001 From: Sarthak Jaiswal Date: Thu, 2 Jan 2025 19:28:07 +0530 Subject: [PATCH] Ignore platform reqs for running codecoverage --- .github/workflows/php-test-plugins.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/php-test-plugins.yml b/.github/workflows/php-test-plugins.yml index 83b32556d..5d9276ab1 100644 --- a/.github/workflows/php-test-plugins.yml +++ b/.github/workflows/php-test-plugins.yml @@ -81,13 +81,10 @@ jobs: run: npm run wp-env run tests-cli -- --env-cwd="wp-content/plugins/$(basename $(pwd))" composer install --no-interaction --no-progress - name: Update Composer Dependencies run: composer update --with-all-dependencies --no-interaction --no-progress - - name: Update Platform Dependency - if: matrix.php == '8.2' - run: composer config platform.php 7.3 - name: Install PHPUnit run: | if [ "${{ matrix.php }}" == "8.2" ]; then - composer require phpunit/phpunit:${{ matrix.phpunit }} --with-all-dependencies + composer require phpunit/phpunit:${{ matrix.phpunit }} --with-all-dependencies --ignore-platform-reqs else composer require --dev phpunit/phpunit:${{ matrix.phpunit }} fi