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'
39+
40+ env :
41+ SYMFONY_REQUIRE : ${{ matrix.symfony-version || '>=5.4' }}
2442
2543 steps :
2644 - name : " Checkout code"
@@ -31,20 +49,20 @@ jobs:
3149 with :
3250 coverage : " none"
3351 php-version : " ${{ matrix.php-version }}"
52+ tools : flex
3453
3554 - name : Allow Flex Plugin
36- run : |
37- composer global config --no-plugins allow-plugins.symfony/flex true
55+ run : composer global config --no-plugins allow-plugins.symfony/flex true
3856
39- - name : Install Global Dependencies
40- run : |
41- composer global require --no-progress --no-scripts --no-plugins symfony/flex @dev
57+ - name : Configure Composer minimum stability
58+ run : composer config minimum-stability ${{ matrix.minimum-stability || 'stable' }} --ansi
4259
4360 - name : " Composer install"
4461 uses : " ramsey/composer-install@v2"
4562 with :
46- dependency-versions : " ${{ matrix.dependency-versions }}"
63+ dependency-versions : " ${{ matrix.dependency-version }}"
4764 composer-options : " --prefer-dist --no-progress"
65+ custom-cache-suffix : " min-stability=${{ matrix.minimum-stability || 'stable' }}"
4866
4967 - name : Run tests
5068 run : ./vendor/bin/simple-phpunit
0 commit comments