Skip to content

Commit b40e136

Browse files
committed
mongosh is not automatically included in latest ubuntu. Install in workflow
1 parent e898b71 commit b40e136

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ jobs:
3939
uses: actions/setup-node@v4
4040
with:
4141
node-version: ${{ matrix.node }}
42+
43+
- name: Install mongosh
44+
run: |
45+
sudo apt-get update
46+
sudo apt-get install -y wget gnupg
47+
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
48+
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
49+
sudo apt-get update
50+
sudo apt-get install -y mongodb-mongosh
51+
4252
- run: which mongosh
4353
- run: npm install
4454
- name: Run tests

0 commit comments

Comments
 (0)