Skip to content

Commit

Permalink
use more recent ubuntu and mongodb server in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 24, 2023
1 parent 4da86ce commit 9501ff7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
Expand All @@ -22,14 +22,14 @@ jobs:

- name: Setup
run: |
wget -q http://downloads.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-4.0.2.tgz
tar xf mongodb-linux-x86_64-ubuntu1804-4.0.2.tgz
wget -q http://downloads.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-5.0.8.tgz
tar xf mongodb-linux-x86_64-ubuntu2004-5.0.8.tgz
mkdir -p ./data/db/27017 ./data/db/27000
printf "\n--timeout 8000" >> ./test/mocha.opts
./mongodb-linux-x86_64-ubuntu1804-4.0.2/bin/mongod --fork --dbpath ./data/db/27017 --syslog --port 27017
./mongodb-linux-x86_64-ubuntu2004-5.0.8/bin/mongod --fork --dbpath ./data/db/27017 --syslog --port 27017
sleep 2
mongod --version
echo `pwd`/mongodb-linux-x86_64-ubuntu1804-4.0.2/bin >> $GITHUB_PATH
echo `pwd`/mongodb-linux-x86_64-ubuntu2004-5.0.8/bin >> $GITHUB_PATH
- run: npm test

Expand Down

0 comments on commit 9501ff7

Please sign in to comment.