4646 matrix :
4747 operating-system : [ubuntu-latest]
4848 php-versions : ['8.1', '8.2', '8.3', '8.4']
49+ symfony : ['~6.4.0', '']
4950
5051 steps :
5152 - name : Setup PHP, with composer and extensions
7172
7273 - uses : actions/checkout@v4
7374
75+ - name : " Downgrade symfony/finder"
76+ if : matrix.symfony != ''
77+ run : composer require --no-update symfony/finder:${{ matrix.symfony }}
78+
7479 - name : Get composer cache directory
7580 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
7681
@@ -85,15 +90,15 @@ jobs:
8590 run : composer install --no-progress --prefer-dist --optimize-autoloader
8691
8792 - name : Run unit tests with coverage
88- if : ${{ matrix.php-versions == '8.4' }}
93+ if : ${{ matrix.php-versions == '8.4' && matrix.symfony == '' }}
8994 run : vendor/bin/phpunit
9095
9196 - name : Run unit tests (no coverage)
92- if : ${{ matrix.php-versions != '8.4' }}
97+ if : ${{ matrix.php-versions != '8.4' || matrix.symfony != '' }}
9398 run : vendor/bin/phpunit --no-coverage
9499
95100 - name : Save coverage data
96- if : ${{ matrix.php-versions == '8.4' }}
101+ if : ${{ matrix.php-versions == '8.4' && matrix.symfony == '' }}
97102 uses : actions/upload-artifact@v4
98103 with :
99104 name : coverage-data
0 commit comments