Skip to content

Commit

Permalink
github workflows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 28, 2025
1 parent f6187fe commit 3e320f1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16, 18, 20]
node: [18, 20]
os: [ubuntu-20.04]
mongo: [5.0.2]
mongo: [5.0.8]
name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongo }}
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3
Expand All @@ -27,12 +27,11 @@ jobs:

- name: Setup
run: |
wget -q https://downloads.mongodb.org/linux/mongodb-linux-x86_64-${{ matrix.os }}-${{ matrix.mongo }}.tgz
tar xf mongodb-linux-x86_64-${{ matrix.os }}-${{ matrix.mongo }}.tgz
wget -q https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-${{ matrix.mongo }}.tgz
tar xf mongodb-linux-x86_64-ubuntu2004-${{ matrix.mongo }}.tgz
mkdir -p ./data/db/27017 ./data/db/27000
printf "\n--timeout 8000" >> ./test/mocha.opts
./mongodb-linux-x86_64-${{ matrix.os }}-${{ matrix.mongo }}/bin/mongod --setParameter ttlMonitorSleepSecs=1 --fork --dbpath ./data/db/27017 --syslog --port 27017
./mongodb-linux-x86_64-ubuntu2004-${{ matrix.mongo }}/bin/mongod --setParameter ttlMonitorSleepSecs=1 --fork --dbpath ./data/db/27017 --syslog --port 27017
sleep 2
mongod --version
echo `pwd`/mongodb-linux-x86_64-${{ matrix.os }}-${{ matrix.mongo }}/bin >> $GITHUB_PATH
echo `pwd`/mongodb-linux-x86_64-ubuntu2004-${{ matrix.mongo }}/bin >> $GITHUB_PATH
- run: npm test

0 comments on commit 3e320f1

Please sign in to comment.