Skip to content

replace Node 14 in test matrix with Node 20, because Mongoose 8 no lo… #12

replace Node 14 in test matrix with Node 20, because Mongoose 8 no lo…

replace Node 14 in test matrix with Node 20, because Mongoose 8 no lo… #12

Workflow file for this run

name: Test
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
node: [16, 18, 20]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- name: Setup
run: |
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-ubuntu2004-5.0.8/bin/mongod --fork --dbpath ./data/db/27017 --syslog --port 27017
sleep 2
mongod --version
echo `pwd`/mongodb-linux-x86_64-ubuntu2004-5.0.8/bin >> $GITHUB_PATH
- run: npm test