Skip to content

Commit e8ae767

Browse files
committed
Skip MongoDB ODM tests while it doesn't support Symfony 8
1 parent 90781a2 commit e8ae767

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
symfony-version:
3636
- '5.4.*'
3737
- '6.4.*'
38+
- '7.3.*'
3839
- '7.4.*'
3940
- '8.0.*'
4041
include:
@@ -43,10 +44,7 @@ jobs:
4344
- php-version: '8.2'
4445
symfony-version: '6.4.*'
4546
- php-version: '8.2'
46-
symfony-version: '7.4.*'
47-
- php-version: '8.4'
48-
symfony-version: '8.0.*'
49-
47+
symfony-version: '7.3.*'
5048
steps:
5149
- name: Checkout code
5250
uses: actions/checkout@v4
@@ -63,6 +61,11 @@ jobs:
6361
composer config --global --no-plugins allow-plugins.symfony/flex true
6462
composer global require --no-progress --no-scripts --no-plugins symfony/flex
6563
64+
- name: Remove incompatible packages
65+
if: matrix.symfony-version == '8.0.*'
66+
run: |
67+
composer remove --no-update --dev doctrine/mongodb-odm
68+
6669
- name: Install Composer dependencies
6770
uses: ramsey/composer-install@v2
6871
with:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"symfony/dotenv": "^5.4 || ^6.0 || ^7.0 || ^8.0",
5151
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0 || ^8.0",
5252
"symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0 || ^8.0",
53-
"symfony/var-dumper": "^5.4 || ^6.0 || ^7.0 || ^8.0",
53+
"symfony/var-dumper": "^5.4 || ^6.0 || ^7.0 || ^8.0"
5454
},
5555
"config": {
5656
"preferred-install": {

tests/Adapter/Builder/GridFSAdapterDefinitionBuilderTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ public function testInvalidOptions(array $options, string $message): void
9898

9999
public function testInitializeBucketFromDocumentManager(): void
100100
{
101+
if (!class_exists(DocumentManager::class)) {
102+
self::markTestSkipped('Doctrine ODM is not installed, skipping test.');
103+
}
104+
101105
$client = new Client();
102106
$config = new Configuration();
103107
$config->setDefaultDB('testing');

0 commit comments

Comments
 (0)