Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,20 @@ jobs:
strategy:
matrix:
php-version:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed all the PHP versions from the matrix, we only need to test the latest and lowest supported versions of PHP for each Symfony version.

symfony-version:
- '5.4.*'
- '6.0.*'
- '6.1.*'
- '6.2.*'
- '6.3.*'
- '6.4.*'
- '7.3.*'
- '7.4.*'
- '8.0.*'
include:
- php-version: '8.0'
symfony-version: '5.4.*'
- php-version: '8.2'
symfony-version: '6.4.*'
- php-version: '8.2'
symfony-version: '7.0.*'

symfony-version: '7.3.*'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -57,15 +54,21 @@ jobs:
with:
coverage: none
php-version: ${{ matrix.php-version }}
extensions: mongodb-1.21.0

- name: Install Symfony Flex
run: |
composer config --global --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex

- name: Remove incompatible packages
if: matrix.symfony-version == '8.0.*'
run: |
composer remove --no-update --dev doctrine/mongodb-odm

- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: highest

- name: Run PHPUnit
run: vendor/bin/simple-phpunit
19 changes: 10 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"require": {
"php": ">=8.0",
"league/flysystem": "^3.0",
"symfony/config": "^5.4 || ^6.0 || ^7.0",
"symfony/config": "^5.4 || ^6.0 || ^7.0 || ^8.0",
"symfony/deprecation-contracts": "^2.1 || ^3",
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
"symfony/options-resolver": "^5.4 || ^6.0 || ^7.0"
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0 || ^8.0",
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0 || ^8.0",
"symfony/options-resolver": "^5.4 || ^6.0 || ^7.0 || ^8.0"
},
"require-dev": {
"doctrine/mongodb-odm": "^2.0",
Expand All @@ -47,16 +47,17 @@
"league/flysystem-sftp-v3": "^3.1",
"league/flysystem-webdav": "^3.29",
"platformcommunity/flysystem-bunnycdn": "^3.3",
"symfony/dotenv": "^5.4 || ^6.0 || ^7.0",
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0",
"symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0",
"symfony/var-dumper": "^5.4 || ^6.0 || ^7.0"
"symfony/dotenv": "^5.4 || ^6.0 || ^7.0 || ^8.0",
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0 || ^8.0",
"symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0 || ^8.0",
"symfony/var-dumper": "^5.4 || ^6.0 || ^7.0 || ^8.0"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"minimum-stability": "beta"
"minimum-stability": "dev",
"prefer-stable": false
}
4 changes: 4 additions & 0 deletions tests/Adapter/Builder/GridFSAdapterDefinitionBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public function testInvalidOptions(array $options, string $message): void

public function testInitializeBucketFromDocumentManager(): void
{
if (!class_exists(DocumentManager::class)) {
self::markTestSkipped('Doctrine ODM is not installed, skipping test.');
}

$client = new Client();
$config = new Configuration();
$config->setDefaultDB('testing');
Expand Down