Skip to content

Commit 7bceca5

Browse files
author
pbromboszcz
committed
add missing mongodb-database-tools dependencies
1 parent bca69a1 commit 7bceca5

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ jobs:
2929
env:
3030
fail-fast: true
3131

32+
- name: Install mongodb-database-tools
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install -y wget gnupg
36+
wget -qO - https://www.mongodb.org/static/pgp/server-8.0.asc | sudo gpg --dearmor -o /usr/share/keyrings/mongodb-server-8.0.gpg
37+
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
38+
sudo apt-get update
39+
sudo apt-get install -y mongodb-database-tools mongodb-mongosh
40+
3241
- name: Validate composer.json and composer.lock
3342
run: composer validate
3443

src/Codeception/Lib/Driver/MongoDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function cleanup(): void
112112
public function load(string $dumpFile): void
113113
{
114114
$cmd = sprintf(
115-
'mongo %s %s%s',
115+
'mongosh %s %s%s',
116116
$this->host . '/' . $this->dbName,
117117
$this->createUserPasswordCmdString(),
118118
escapeshellarg($dumpFile)

0 commit comments

Comments
 (0)