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,40 @@ 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.*
4751 - description : ' Symfony 7'
4852 php : ' 8.2'
49- symfony : ^7.2
50- dev : true
51- - description : ' Dev deps'
53+ symfony : ^7.4
54+ - description : ' Symfony 8'
5255 php : ' 8.4'
56+ symfony : ^8.0
57+ - description : ' Dev deps'
58+ php : ' 8.5'
59+ symfony : ^8.1
5360 dev : true
5461 name : PHP ${{ matrix.php }} tests (${{ matrix.description }})
5562 steps :
5663 - 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 }}
64+ uses : actions/checkout@v6
6365 - name : Setup PHP
6466 uses : shivammathur/setup-php@v2
6567 with :
6668 php-version : ${{ matrix.php }}
6769 tools : flex
68- - run : composer config minimum-stability dev
70+ - name : Allow possible dev dependencies
71+ run : composer config minimum-stability dev
6972 if : matrix.dev
70- - run : composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
73+ - name : Install dependencies
74+ uses : ramsey/composer-install@v3
75+ with :
76+ dependency-versions : ${{ matrix.dependencies }}
7177 env :
72- SYMFONY_REQUIRE : ${{ matrix.symfony }}
73- - run : vendor/bin/phpunit
78+ SYMFONY_REQUIRE : ${{ matrix.symfony }}
79+ - run : vendor/bin/phpunit --colors=always
0 commit comments