5050 composer-options : ' --prefer-lowest'
5151 - php-versions : ' 8.4'
5252 composer-options : ' '
53+ - php-versions : ' 8.4'
54+ composer-options : ' --prefer-lowest'
55+ - php-versions : ' 8.5'
56+ composer-options : ' '
5357 # set the name for each job
5458 name : PHP ${{ matrix.php-versions }} ${{ matrix.composer-options }}
5559 # set up environment variables used by unit tests
@@ -60,12 +64,12 @@ jobs:
6064 AWS_SUPPRESS_PHP_DEPRECATION_WARNING : true
6165 steps :
6266 # sets up the correct version of PHP with necessary config options
63- - name : Setup PHP with Xdebug
67+ - name : Setup PHP with JIT
6468 uses : shivammathur/setup-php@v2
6569 with :
66- coverage : xdebug
70+ coverage : none
6771 php-version : ${{ matrix.php-versions }}
68- ini-values : xdebug.overload_var_dump=0, memory_limit=4G, phar.readonly=false
72+ ini-values : memory_limit=4G, phar.readonly=false, opcache.enable=1, opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=128M
6973
7074 # checkout the codebase from github
7175 - name : Checkout codebase
@@ -81,19 +85,14 @@ jobs:
8185 - name : Install dependencies
8286 run : composer update ${{ matrix.composer-options }} --no-interaction --prefer-source
8387
84- # php 8.1+ requirements
85- - name : PHP 8.1+ requirements
86- run : composer require --dev phpunit/phpunit "^9.5" guzzlehttp/guzzle "^7.4.5" --no-interaction --prefer-source --with-all-dependencies
87-
8888 # run tests
8989 - name : Run test suite
9090 run : make test
9191
9292 # static analysis
9393 - name : Static analysis
9494 run : |
95- composer require --dev nette/neon "^3.4.4"
96- composer require --dev phpstan/phpstan "2.1.1"
95+ composer require --dev nette/neon "^3.4.4" phpstan/phpstan "2.1.1" --ignore-platform-req=php --update-with-all-dependencies
9796 vendor/bin/phpstan analyse src
9897
9998 # generate package
@@ -103,8 +102,3 @@ jobs:
103102 composer config platform.php 8.1
104103 composer update
105104 make package
106-
107- # generate code coverage
108- - if : ${{ matrix.composer-options == '' }}
109- name : Code Coverage
110- run : bash <(curl -s https://codecov.io/bash)
0 commit comments