diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5388da..14f0b64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: strategy: fail-fast: false matrix: - php-version: ['7.4', '8.0', '8.3'] + php-version: ['8.1', '8.3'] name: PHP ${{ matrix.php-version }} steps: - uses: actions/checkout@v2 @@ -16,7 +16,7 @@ jobs: coverage: pcov php-version: ${{ matrix.php-version }} tools: pecl, composer:v2 - extensions: mongodb-1.9.1 + extensions: mongodb-1.13 - name: Composer config run: composer config --no-plugins allow-plugins.infection/extension-installer true - name: Composer install diff --git a/composer.json b/composer.json index e417056..7eaa40f 100644 --- a/composer.json +++ b/composer.json @@ -17,19 +17,19 @@ } ], "require": { - "php": "^7.4 || ^8.0", + "php": "^8.1", "ext-json": "*", "symfony/messenger": "^5.0 || ^6.0 || ^7.0", - "mongodb/mongodb": "^1.8" + "mongodb/mongodb": "^1.12" }, "require-dev": { "symfony/serializer": "^5.0 || ^6.0 || ^7.0", "symfony/property-access": "^5.0 || ^6.0 || ^7.0", "symfony/var-dumper": "^5.0 || ^6.0 || ^7.0", "symfony/framework-bundle": "^5.0 || ^6.0 || ^7.0", - "phpunit/phpunit": "^9.5", - "infection/infection": "^0.25.0", - "phpstan/phpstan": "^1.2" + "phpunit/phpunit": "^10.5", + "infection/infection": "^0.27.9", + "phpstan/phpstan": "^1.10" }, "autoload": { "psr-4": { @@ -40,5 +40,10 @@ "psr-4": { "EmagTechLabs\\MessengerMongoBundle\\Tests\\": "tests/" } + }, + "config": { + "allow-plugins": { + "infection/extension-installer": true + } } } diff --git a/docker-compose.yaml b/docker-compose.yaml index fa6fa61..2f99f29 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,7 +8,7 @@ services: - ./:/var/www/html mongo: restart: unless-stopped - image: mongo:3.6 + image: mongo:6 ports: - 27017:27017 environment: diff --git a/docker/Dockerfile b/docker/Dockerfile index 9def1f0..b66450c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,16 +1,21 @@ -FROM php:8.0-alpine +FROM php:8.3-alpine WORKDIR /var/www/html RUN apk update \ && apk upgrade \ - && apk add --no-cache git zip make autoconf g++ openssl-dev + && apk add --no-cache git zip make autoconf g++ openssl-dev linux-headers \ + && apk add --no-cache --virtual .build-deps $PHPIZE_DEPS -RUN pecl -q install mongodb-1.9.1 xdebug \ - && docker-php-ext-enable mongodb +RUN pecl -q install mongodb-1.17.2 \ + && docker-php-ext-enable mongodb \ + && pecl -q install xdebug \ + && docker-php-ext-enable xdebug ENV COMPOSER_MEMORY_LIMIT=-1 RUN curl --silent --show-error https://getcomposer.org/installer | php \ && mv composer.phar /usr/local/bin/composer \ - && chmod o+x /usr/local/bin/composer \ No newline at end of file + && chmod o+x /usr/local/bin/composer + +ENTRYPOINT ["tail", "-f", "/dev/null"] \ No newline at end of file diff --git a/infection.json b/infection.json index 7b603a5..265d295 100755 --- a/infection.json +++ b/infection.json @@ -6,8 +6,8 @@ }, "logs": { "text": "infection.log", - "badge": { - "branch": "master" + "stryker": { + "badge": "master" } }, "mutators": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 189c2a9..d379dc7 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,17 +1,5 @@ - - - - ./src - - + @@ -20,4 +8,9 @@ ./tests/ + + + ./src + +