88
99jobs :
1010 tests :
11- name : " Tests ${{ matrix.php-version }} deps ${{ matrix.dependency-versions }}"
1211 runs-on : ubuntu-22.04
1312
1413 strategy :
1514 fail-fast : false
1615 matrix :
17- # normal, highest, non-dev installs
1816 php-version : ['8.1', '8.2', '8.3', '8.4']
19- dependency-versions : ['highest']
17+ dependency-version : [ 'highest' ]
18+ symfony-version : [ '' ]
19+ minimum-stability : ['stable']
2020 include :
21- # testing lowest PHP version with lowest dependencies
22- - php-version : ' 8.1'
23- dependency-versions : ' lowest'
21+ # dev packages (probably not needed to have multiple such jobs)
22+ - minimum-stability : ' dev'
23+ php-version : ' 8.4'
24+ # lowest deps
25+ - php-version : ' 8.1'
26+ dependency-version : ' lowest'
27+ # LTS version of Symfony
28+ - php-version : ' 8.1'
29+ symfony-version : ' 6.4.*'
30+ # Explicit Symfony versions
31+ - php-version : ' 8.1'
32+ symfony-version : ' 5.4'
33+ - php-version : ' 8.1'
34+ symfony-version : ' 6.2'
35+ - php-version : ' 8.2'
36+ symfony-version : ' 7.0'
37+ - php-version : ' 8.4'
38+ symfony-version : ' 8.0.x-dev' # TODO: change to '8.0' when Symfony 8.0 is released
39+ minimum-stability : ' dev' # TODO: remove when Symfony 8.0 is released
40+
41+ env :
42+ SYMFONY_REQUIRE : ${{ matrix.symfony-version || '>=5.4' }}
2443
2544 steps :
2645 - name : " Checkout code"
@@ -31,20 +50,20 @@ jobs:
3150 with :
3251 coverage : " none"
3352 php-version : " ${{ matrix.php-version }}"
53+ tools : flex
3454
3555 - name : Allow Flex Plugin
36- run : |
37- composer global config --no-plugins allow-plugins.symfony/flex true
56+ run : composer global config --no-plugins allow-plugins.symfony/flex true
3857
39- - name : Install Global Dependencies
40- run : |
41- composer global require --no-progress --no-scripts --no-plugins symfony/flex @dev
58+ - name : Configure Composer minimum stability
59+ run : composer config minimum-stability ${{ matrix.minimum-stability || 'stable' }} --ansi
4260
4361 - name : " Composer install"
4462 uses : " ramsey/composer-install@v2"
4563 with :
46- dependency-versions : " ${{ matrix.dependency-versions }}"
64+ dependency-versions : " ${{ matrix.dependency-version }}"
4765 composer-options : " --prefer-dist --no-progress"
66+ custom-cache-suffix : " min-stability=${{ matrix.minimum-stability || 'stable' }}"
4867
4968 - name : Run tests
5069 run : ./vendor/bin/simple-phpunit
0 commit comments