diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 212635d5..5094e2e0 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -14,6 +14,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true +env: + REQUIRED_PHP_EXTENSIONS: 'mongodb' + jobs: php: runs-on: ubuntu-latest @@ -57,6 +60,7 @@ jobs: with: php-version: ${{ matrix.php-version }} tools: flex + extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" - name: Install root dependencies run: composer install diff --git a/src/store/composer.json b/src/store/composer.json index 122838b5..c968ef95 100644 --- a/src/store/composer.json +++ b/src/store/composer.json @@ -29,12 +29,9 @@ "symfony/uid": "^6.4 || ^7.1", "webmozart/assert": "^1.11" }, - "conflict": { - "mongodb/mongodb": "<1.21" - }, "require-dev": { "codewithkyrian/chromadb-php": "^0.2.1 || ^0.3 || ^0.4", - "mongodb/mongodb": "^1.21", + "mongodb/mongodb": "^1.21 || ^2.0", "phpstan/phpstan": "^2.0", "phpstan/phpstan-webmozart-assert": "^2.0", "phpunit/phpunit": "^11.5",