Skip to content

Commit

Permalink
fixing migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai.leu committed Jan 19, 2024
1 parent 9d6ea5f commit 9be7dc5
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
coverage: pcov
php-version: ${{ matrix.php-version }}
tools: pecl, composer:v2
extensions: mongodb-1.9.1
extensions: mongodb-1.12.0
- name: Composer config
run: composer config --no-plugins allow-plugins.infection/extension-installer true
- name: Composer install
Expand Down
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"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",
Expand All @@ -40,5 +40,10 @@
"psr-4": {
"EmagTechLabs\\MessengerMongoBundle\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"infection/extension-installer": true
}
}
}
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- ./:/var/www/html
mongo:
restart: unless-stopped
image: mongo:3.6
image: mongo:6
ports:
- 27017:27017
environment:
Expand Down
13 changes: 9 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ 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
&& chmod o+x /usr/local/bin/composer

ENTRYPOINT ["tail", "-f", "/dev/null"]
19 changes: 6 additions & 13 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
failOnRisky="true"
failOnWarning="true"
>
<coverage>
<include>
<directory>./src</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" failOnRisky="true" failOnWarning="true">
<php>
<ini name="error_reporting" value="-1"/>
</php>
Expand All @@ -20,4 +8,9 @@
<directory>./tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./src</directory>
</include>
</source>
</phpunit>

0 comments on commit 9be7dc5

Please sign in to comment.