diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 174012c..996060e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: true matrix: - php: [8.2, 8.3] + php: [8.2, 8.3, 8.4, 8.5] composer-flags: [ '' ] stability: ['prefer-stable'] experimental: [false] @@ -52,5 +52,4 @@ jobs: - name: Infection if: ${{ matrix.experimental == false }} - run: vendor/bin/infection --min-msi=100 --min-covered-msi=100 --show-mutations --only-covered --threads=4 --test-framework-options="--configuration=phpunit.xml.dist" --configuration=infection.json.dist - + run: php -d error_reporting="E_ALL & ~E_DEPRECATED" vendor/bin/infection --min-msi=100 --min-covered-msi=100 --show-mutations --threads=4 --configuration=infection.json.dist diff --git a/composer.json b/composer.json index a568327..5429cba 100644 --- a/composer.json +++ b/composer.json @@ -10,11 +10,11 @@ } ], "require": { - "php": "~8.2.0 || ~8.3.0" + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { "beberlei/assert": "~v3.3", - "infection/infection": "^0.27", + "infection/infection": "^0.32", "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^10.5", "roave/security-advisories": "dev-latest" diff --git a/docker-compose.yml b/docker-compose.yml index 6b0e1b1..fd3456a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: "3.7" services: php82: build: ./docker/php82/ @@ -6,9 +5,24 @@ services: - .:/var/www/html - ./docker/php82/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini - ./docker/php82/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini + php83: build: ./docker/php83/ volumes: - .:/var/www/html - ./docker/php83/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini - ./docker/php83/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini + + php84: + build: ./docker/php84/ + volumes: + - .:/var/www/html + - ./docker/php84/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini + - ./docker/php84/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini + + php85: + build: ./docker/php85/ + volumes: + - .:/var/www/html + - ./docker/php85/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini + - ./docker/php85/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini diff --git a/docker/php84/Dockerfile b/docker/php84/Dockerfile new file mode 100644 index 0000000..53fb494 --- /dev/null +++ b/docker/php84/Dockerfile @@ -0,0 +1,10 @@ +FROM php:8.4-cli + +RUN apt-get update && \ + apt-get install -y --no-install-recommends git libzip-dev zip unzip \ + && docker-php-ext-install zip + +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +RUN pecl install xdebug \ + && docker-php-ext-enable xdebug diff --git a/docker/php84/conf.d/error_reporting.ini b/docker/php84/conf.d/error_reporting.ini new file mode 100644 index 0000000..7e566f4 --- /dev/null +++ b/docker/php84/conf.d/error_reporting.ini @@ -0,0 +1 @@ +error_reporting=E_ALL diff --git a/docker/php84/conf.d/xdebug.ini b/docker/php84/conf.d/xdebug.ini new file mode 100644 index 0000000..5a891b8 --- /dev/null +++ b/docker/php84/conf.d/xdebug.ini @@ -0,0 +1,6 @@ +zend_extension=xdebug + +[xdebug] +xdebug.mode=coverage +xdebug.client_host=host.docker.internal +xdebug.start_with_request=yes diff --git a/docker/php85/Dockerfile b/docker/php85/Dockerfile new file mode 100644 index 0000000..1467c3f --- /dev/null +++ b/docker/php85/Dockerfile @@ -0,0 +1,10 @@ +FROM php:8.5-cli + +RUN apt-get update && \ + apt-get install -y --no-install-recommends git libzip-dev zip unzip \ + && docker-php-ext-install zip + +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +RUN pecl install xdebug \ + && docker-php-ext-enable xdebug diff --git a/docker/php85/conf.d/error_reporting.ini b/docker/php85/conf.d/error_reporting.ini new file mode 100644 index 0000000..7e566f4 --- /dev/null +++ b/docker/php85/conf.d/error_reporting.ini @@ -0,0 +1 @@ +error_reporting=E_ALL diff --git a/docker/php85/conf.d/xdebug.ini b/docker/php85/conf.d/xdebug.ini new file mode 100644 index 0000000..5a891b8 --- /dev/null +++ b/docker/php85/conf.d/xdebug.ini @@ -0,0 +1,6 @@ +zend_extension=xdebug + +[xdebug] +xdebug.mode=coverage +xdebug.client_host=host.docker.internal +xdebug.start_with_request=yes diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 83ee3b2..5a8a829 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -2,7 +2,7 @@ - src + src src/