Skip to content
Merged
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
43 changes: 33 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,44 @@ jobs:
ini-values: error_reporting=E_ALL, display_errors=On, display_startup_errors=On
coverage: none

# Remove the PHP 8.x polyfills on PHP < 7 as the minimum requirement is PHP 7.1 and the autoloading
# of the polyfill bootstrap file via Composer would generate a parse error, blocking the DealerDirect plugin
# from setting the installed_paths for PHPCS.
- name: "Conditionally remove some polyfill packages (PHP 5.4)"
if: ${{ matrix.php == '5.4' }}
run: >
composer remove --dev --no-update --no-scripts --no-interaction
symfony/polyfill-php80
symfony/polyfill-php81
symfony/polyfill-php82
symfony/polyfill-php83
symfony/polyfill-php84
symfony/polyfill-php85

- name: "Conditionally require specific versions of the polyfills (PHP 5.4)"
if: ${{ matrix.php == '5.4' }}
run: |
# Remove the PHP 8.x polyfills on PHP < 7 as the minimum requirement is PHP 7.1 and the autoloading
# of the polyfill bootstrap file via Composer would generate a parse error, blocking the DealerDirect plugin
# from setting the installed_paths for PHPCS.
composer remove --dev symfony/polyfill-php80 symfony/polyfill-php81 symfony/polyfill-php82 symfony/polyfill-php83 symfony/polyfill-php84 symfony/polyfill-php85 --no-update --no-scripts --no-interaction
composer require --dev --no-update symfony/polyfill-php72:"1.19" symfony/polyfill-php73:"1.19" symfony/polyfill-php74:"1.19" --no-interaction
run: >
composer require --dev --no-update --no-interaction
symfony/polyfill-php72:"1.19"
symfony/polyfill-php73:"1.19"
symfony/polyfill-php74:"1.19"

# Remove the PHP >= 8.5 polyfills on PHP 7.1 as the minimum requirement is PHP 7.2.
- name: "Conditionally remove some polyfill packages (PHP 7.1)"
if: ${{ matrix.php == '7.1' }}
run: composer remove --dev symfony/polyfill-php85 --no-update --no-scripts --no-interaction

- name: "Conditionally require specific versions of the polyfills (PHP 7.1)"
if: ${{ matrix.php == '7.1' }}
run: |
# Remove the PHP >= 8.5 polyfills on PHP 7.1 as the minimum requirement is PHP 7.2.
composer remove --dev symfony/polyfill-php85 --no-update --no-scripts --no-interaction
composer require --dev --no-update symfony/polyfill-php73:"1.30" symfony/polyfill-php74:"1.30" symfony/polyfill-php80:"1.30" symfony/polyfill-php81:"1.30" symfony/polyfill-php82:"1.30" symfony/polyfill-php83:"1.30" symfony/polyfill-php84:"1.30" --no-interaction
run: >
composer require --dev --no-update --no-interaction
symfony/polyfill-php73:"1.30"
symfony/polyfill-php74:"1.30"
symfony/polyfill-php80:"1.30"
symfony/polyfill-php81:"1.30"
symfony/polyfill-php82:"1.30"
symfony/polyfill-php83:"1.30"
symfony/polyfill-php84:"1.30"

- name: Conditionally update PHPCompatibility to develop version
if: ${{ matrix.phpcompat != 'stable' }}
Expand Down