@@ -38,14 +38,18 @@ jobs:
3838 enable_yamllinter : true
3939
4040 unit-tests-linux :
41- name : " Unit tests, PHP ${{ matrix.php-versions }}, ${{ matrix.operating-system }}"
41+ name : " Unit tests, PHP ${{ matrix.php-versions }}, symfony ${{ matrix.symfony }}, ${{ matrix.operating-system }}"
4242 runs-on : ${{ matrix.operating-system }}
4343 needs : [phplinter, linter]
4444 strategy :
4545 fail-fast : false
4646 matrix :
4747 operating-system : [ubuntu-latest]
48- php-versions : ['8.1', '8.2', '8.3', '8.4']
48+ php-versions : ['8.2', '8.3', '8.4']
49+ symfony : ['~6.4.0', '~7.0.0', '~7.1.0', '~7.2.0', '^7.3']
50+ include :
51+ - php-versions : ' 8.1'
52+ symfony : ' ~6.4.0'
4953
5054 steps :
5155 - name : Setup PHP, with composer and extensions
7175
7276 - uses : actions/checkout@v4
7377
78+ - name : " Require symfony/finder:${{ matrix.symfony }}"
79+ run : composer require --no-update symfony/finder:${{ matrix.symfony }}
80+
7481 - name : Get composer cache directory
7582 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
7683
@@ -85,15 +92,15 @@ jobs:
8592 run : composer install --no-progress --prefer-dist --optimize-autoloader
8693
8794 - name : Run unit tests with coverage
88- if : ${{ matrix.php-versions == '8.4' }}
95+ if : ${{ matrix.php-versions == '8.4' && matrix.symfony == '' }}
8996 run : vendor/bin/phpunit
9097
9198 - name : Run unit tests (no coverage)
92- if : ${{ matrix.php-versions != '8.4' }}
99+ if : ${{ matrix.php-versions != '8.4' || matrix.symfony != '' }}
93100 run : vendor/bin/phpunit --no-coverage
94101
95102 - name : Save coverage data
96- if : ${{ matrix.php-versions == '8.4' }}
103+ if : ${{ matrix.php-versions == '8.4' && matrix.symfony == '' }}
97104 uses : actions/upload-artifact@v4
98105 with :
99106 name : coverage-data
0 commit comments