File tree Expand file tree Collapse file tree 3 files changed +28
-5
lines changed
Expand file tree Collapse file tree 3 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 77jobs :
88 linux_tests :
99 name : PHP on ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.composer-flags }}
10- runs-on : ubuntu-20 .04
10+ runs-on : ubuntu-22 .04
1111 strategy :
1212 matrix :
1313 php : ['8.1', '8.2', '8.3', '8.4']
1414 stability : [prefer-lowest, prefer-stable]
15+ include :
16+ - php : ' 8.5'
17+ flags : " --ignore-platform-req=php"
18+ stability : prefer-stable
1519 steps :
1620 - name : Checkout code
17- uses : actions/checkout@v3
21+ uses : actions/checkout@v4
1822
1923 - name : Setup PHP
2024 uses : shivammathur/setup-php@v2
@@ -45,11 +49,16 @@ jobs:
4549
4650 - name : Run Unit tests with coverage
4751 run : composer phpunit -- ${{ matrix.phpunit-flags }}
52+ if : ${{ matrix.php != '8.5' }}
53+
54+ - name : Run Unit tests without coverage
55+ run : vendor/bin/phpunit --no-coverage
56+ if : ${{ matrix.php == '8.5' }}
4857
4958 - name : Run static analysis
50- run : composer phpstan
51- if : ${{ matrix.php == '8.3 ' && matrix.stability == 'prefer-stable'}}
59+ run : composer phpstan-build
60+ if : ${{ matrix.php == '8.4 ' && matrix.stability == 'prefer-stable'}}
5261
5362 - name : Run Coding style rules
5463 run : composer phpcs:fix
55- if : ${{ matrix.php == '8.3 ' && matrix.stability == 'prefer-stable'}}
64+ if : ${{ matrix.php == '8.4 ' && matrix.stability == 'prefer-stable'}}
Original file line number Diff line number Diff line change 6666 "phpcs" : " PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --dry-run --diff -vvv --allow-risky=yes --ansi" ,
6767 "phpcs:fix" : " php-cs-fixer fix -vvv --allow-risky=yes --ansi" ,
6868 "phpstan" : " phpstan analyse -c phpstan.neon --ansi --memory-limit 192M" ,
69+ "phpstan-build" : " phpstan analyse -c phpstan-build.neon --ansi --memory-limit 192M" ,
6970 "phpunit" : " XDEBUG_MODE=coverage phpunit --coverage-text" ,
7071 "phpunit:min" : " phpunit --no-coverage" ,
7172 "test" : [
Original file line number Diff line number Diff line change 1+ includes :
2+ - vendor/phpstan/phpstan-deprecation-rules/rules.neon
3+ - vendor/phpstan/phpstan-strict-rules/rules.neon
4+ - vendor/phpstan/phpstan-phpunit/extension.neon
5+ - vendor/phpstan/phpstan-phpunit/rules.neon
6+ parameters :
7+ level : max
8+ paths :
9+ - src
10+ ignoreErrors :
11+ - ' #^Generator expects value type array #'
12+ - ' #^Fetching class constant #'
13+ - ' #has typehint with deprecated enum League\\Period\\InitialDatePresence #'
You can’t perform that action at this time.
0 commit comments