Fix: Update test workflow for PHP 7.0 compatibility

This commit is contained in:
2025-04-18 17:42:18 +01:00
parent 3c1db9d4fb
commit 1cf46254b7
6 changed files with 42 additions and 20 deletions

View File

@@ -30,12 +30,8 @@ jobs:
run: |
if [[ "${{ matrix.php-versions }}" == "7.0" ]]; then
composer require --dev phpunit/phpunit:"^6.5" --update-with-dependencies
composer require --dev 10up/wp_mock:"^0.4.2" --update-with-dependencies
composer require --dev antecedent/patchwork:"^2.1.21" --update-with-dependencies
else
composer install --prefer-dist --no-progress
composer require --dev 10up/wp_mock:"^0.4.2" --update-with-dependencies
fi
composer install --prefer-dist --no-progress
- name: Run tests
run: ./vendor/bin/phpunit