1414 - name : Checkout
1515 uses : actions/checkout@v6
1616 - name : PHPStan
17- uses : docker://oskarstark/phpstan-ga:1.8.0
17+ uses : docker://oskarstark/phpstan-ga
1818 env :
1919 REQUIRE_DEV : true
2020 with :
@@ -34,14 +34,13 @@ jobs:
3434 strategy :
3535 matrix :
3636 php :
37- - ' 8.1'
3837 - ' 8.2'
3938 - ' 8.3'
4039 - ' 8.4'
4140 - ' 8.5'
4241 include :
4342 - description : ' Symfony 6.4'
44- php : ' 8.1 '
43+ php : ' 8.2 '
4544 composer_option : ' --prefer-lowest'
4645 - description : ' Symfony 6.4'
4746 php : ' 8.3'
@@ -56,21 +55,17 @@ jobs:
5655 steps :
5756 - name : Checkout
5857 uses : actions/checkout@v6
59- - name : Cache
60- uses : actions/cache@v4
61- with :
62- path : ~/.composer/cache/files
63- key : ${{ matrix.php }}-${{ matrix.symfony }}-${{ matrix.composer_option }}
6458 - name : Setup PHP
6559 uses : shivammathur/setup-php@v2
6660 with :
6761 php-version : ${{ matrix.php }}
68- - run : |
69- sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
70- if: contains(matrix.symfony, '-dev')
71- - run : composer config minimum-stability dev
72- - run : composer config prefer-stable true
73- if : matrix.symfony
74- - run : composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
75- - run : vendor/bin/phpunit
62+ tools : flex
63+ - name : Install dependencies
64+ uses : ramsey/composer-install@v3
65+ with :
66+ dependency-versions : ${{ matrix.dependencies }}
67+ env :
68+ SYMFONY_REQUIRE : ${{ matrix.symfony }}
69+ - name : Run tests
70+ run : vendor/bin/phpunit --colors=always
7671
0 commit comments