11name : Continuous Integration
22
33on :
4+ push :
5+ branches :
6+ - master
47 pull_request : ~
5- push : ~
68
79jobs :
810 check :
911 runs-on : ubuntu-24.04
1012 steps :
1113 - name : Checkout
12- uses : actions/checkout@v4
14+ uses : actions/checkout@v6
1315 - name : Setup PHP
1416 uses : shivammathur/setup-php@v2
1517 - name : Validate composer.json
1921 name : PHP-CS-Fixer
2022 steps :
2123 - name : Checkout
22- uses : actions/checkout@v4
24+ uses : actions/checkout@v6
2325 - name : Fix CS
2426 uses : docker://oskarstark/php-cs-fixer-ga
2527 with :
@@ -38,36 +40,36 @@ jobs:
3840 php : ' 8.3'
3941 - description : ' No Symfony specified'
4042 php : ' 8.4'
43+ - description : ' No Symfony specified'
44+ php : ' 8.5'
4145 - description : ' Lowest deps'
4246 php : ' 8.1'
43- composer_option : ' --prefer- lowest'
47+ dependencies : lowest
4448 - description : ' Symfony 6.4'
4549 php : ' 8.1'
4650 symfony : 6.4.*
47- - description : ' Symfony 7'
51+ - description : ' Symfony 7.4 '
4852 php : ' 8.2'
49- symfony : ^7.2
50- dev : true
53+ symfony : 7.4.*
5154 - description : ' Dev deps'
52- php : ' 8.4 '
55+ php : ' 8.5 '
5356 dev : true
5457 name : PHP ${{ matrix.php }} tests (${{ matrix.description }})
5558 steps :
5659 - name : Checkout
57- uses : actions/checkout@v4
58- - name : Cache
59- uses : actions/cache@v4
60- with :
61- path : ~/.composer/cache/files
62- key : composer-${{ matrix.php }}-${{ matrix.symfony }}-${{ matrix.composer_option }}
60+ uses : actions/checkout@v6
6361 - name : Setup PHP
6462 uses : shivammathur/setup-php@v2
6563 with :
6664 php-version : ${{ matrix.php }}
6765 tools : flex
68- - run : composer config minimum-stability dev
66+ - name : Allow possible dev dependencies
67+ run : composer config minimum-stability dev
6968 if : matrix.dev
70- - run : composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
69+ - name : Install dependencies
70+ uses : ramsey/composer-install@v3
71+ with :
72+ dependency-versions : ${{ matrix.dependencies }}
7173 env :
72- SYMFONY_REQUIRE : ${{ matrix.symfony }}
73- - run : vendor/bin/phpunit
74+ SYMFONY_REQUIRE : ${{ matrix.symfony }}
75+ - run : vendor/bin/phpunit --colors=always
0 commit comments