Skip to content

Commit 8ef1c46

Browse files
Merge pull request liip#348 from alexislefebvre/2.x-backport-fix-for-mongodb-from-3.x
chore: ignore ext-mongodb for Symfony 5.4
2 parents 77f2bc9 + 650e82b commit 8ef1c46

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
tests:
7-
name: Symfony ${{ matrix.symfony-version }} - PHP ${{ matrix.php-version }} - flags ${{ matrix.composer-flags }} - mysqldump ${{ matrix.mysql-client }}
7+
name: 🧪 Symfony ${{ matrix.symfony-version || 'Ø' }} - 🐘 ${{ matrix.php-version }} - 🏳️ ${{ matrix.composer-flags || 'Ø' }} - 💾 ${{ matrix.mysql-client || 'Ø' }}
88
runs-on: ubuntu-latest
99

1010
strategy:
@@ -17,6 +17,7 @@ jobs:
1717
composer-flags: ['']
1818
symfony-version: ['']
1919
mysql-client: [ "default-mysql-client" ]
20+
# note: values defined in `matrix` and not in the `include:` section will be empty in jobs
2021
include:
2122
- php-version: 7.4
2223
# Use "update" instead of "install" since it allows using the "--prefer-lowest" option
@@ -27,10 +28,14 @@ jobs:
2728
- php-version: 8.1
2829
# add a specific job to test ^5.4 for all Symfony packages
2930
symfony-version: "^5.4"
31+
# avoid error between doctrine/mongodb-odm-bundle and the version of Mongo installed on the CI runner
32+
composer-flags: "install --ignore-platform-req=ext-mongodb"
3033
- php-version: 8.1
3134
symfony-version: "^5.4"
3235
# add a specific job to test mysqldump from MariaDB
3336
mysql-client: "mariadb-client"
37+
# avoid error between doctrine/mongodb-odm-bundle and the version of Mongo installed on the CI runner
38+
composer-flags: "install --ignore-platform-req=ext-mongodb"
3439
- php-version: 8.2
3540
# add a specific job to test ^6.4 for all Symfony packages
3641
symfony-version: "^6.4"
@@ -81,12 +86,12 @@ jobs:
8186
- name: Install mysqldump
8287
run: |
8388
sudo apt update
84-
sudo apt install -y -q ${{ matrix.mysql-client }}
89+
sudo apt install -y -q ${{ matrix.mysql-client || 'default-mysql-client' }}
8590
mysqldump --version
8691
8792
- name: Install mongodb database tools
8893
run: |
89-
wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian92-x86_64-100.3.1.deb
94+
wget --quiet https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian92-x86_64-100.3.1.deb
9095
sudo apt install ./mongodb-database-tools-*.deb
9196
rm -f mongodb-database-tools-*.deb
9297

0 commit comments

Comments
 (0)