Skip to content

Commit

Permalink
Ignore platform reqs for running codecoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak Jaiswal authored and Sarthak Jaiswal committed Jan 2, 2025
1 parent 000cb4b commit bdc8b60
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/php-test-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdc8b60

Please sign in to comment.