File tree Expand file tree Collapse file tree 3 files changed +14
-20
lines changed
Expand file tree Collapse file tree 3 files changed +14
-20
lines changed Original file line number Diff line number Diff line change @@ -28,26 +28,20 @@ jobs:
2828 - name : Validate composer.json
2929 run : composer validate
3030
31- # - name: Cache Composer packages
32- # id: composer-cache
33- # uses: actions/cache@v2
34- # with:
35- # path: vendor
36- # key: ${{ runner.os }}-php-${{ hashFiles('**/composer.json') }}
37- # restore-keys: |
38- # ${{ runner.os }}-php-
31+ - uses : " shivammathur/setup-php@v2"
32+ with :
33+ php-version : ${{ matrix.php-version }}
3934
4035 - name : Install dependencies
4136 uses : " ramsey/composer-install@v3"
4237 with :
4338 dependency-versions : ${{ matrix.dependency-versions }}
4439
4540 - name : PHPUnit tests
46- uses : php-actions/phpunit@v2
41+ uses : php-actions/phpunit@v4
4742 with :
4843 configuration : phpunit.xml
4944 php_version : ${{ matrix.php-version }}
50- version : 9
5145
5246 - name : Run PHPStan
5347 run : vendor/bin/phpstan
Original file line number Diff line number Diff line change 2424 "php" : " >=8.1" ,
2525 "ext-json" : " *" ,
2626 "guzzlehttp/guzzle" : " ^7.2" ,
27- "symfony/serializer" : " ^5.2" ,
28- "symfony/property-access" : " ^5.2" ,
29- "symfony/property-info" : " ^5.2" ,
27+ "symfony/serializer" : " ^5.2|^6.0|^7.0 " ,
28+ "symfony/property-access" : " ^5.2|^6.0|^7.0 " ,
29+ "symfony/property-info" : " ^5.2|^6.0|^7.0 " ,
3030 "phpdocumentor/reflection-docblock" : " ^5.2"
3131 },
3232 "require-dev" : {
33- "phpunit/phpunit" : " ^10" ,
33+ "phpunit/phpunit" : " ^10.5.0 " ,
3434 "phpstan/phpstan" : " ^1.0" ,
3535 "phpstan/phpstan-phpunit" : " ^1.0" ,
3636 "phpstan/phpstan-strict-rules" : " ^1.0"
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" vendor/autoload.php" backupGlobals =" false" backupStaticAttributes =" false" colors =" true" convertErrorsToExceptions =" true" convertNoticesToExceptions =" true" convertWarningsToExceptions =" true" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
3- <coverage >
4- <include >
5- <directory suffix =" .php" >src/</directory >
6- </include >
7- </coverage >
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" vendor/autoload.php" backupGlobals =" false" colors =" true" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory =" .phpunit.cache" backupStaticProperties =" false" >
83 <testsuites >
94 <testsuite name =" Project Test Suite" >
105 <directory >tests</directory >
138 <php >
149 <env name =" APP_ENV" value =" testing" />
1510 </php >
11+ <source >
12+ <include >
13+ <directory suffix =" .php" >src/</directory >
14+ </include >
15+ </source >
1616</phpunit >
You can’t perform that action at this time.
0 commit comments