Skip to content

chore: updated ci to use various node/mongodb versions #13

chore: updated ci to use various node/mongodb versions

chore: updated ci to use various node/mongodb versions #13

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16.x', '18.x', '20.x'] # ['16.x', '18.x', '20.x']
mongodb-version: ['4.4', '5.0', '6.0'] # ['4.4', '5.0', '6.0']
steps:
- uses: actions/checkout@v2
- name: Start MongoDB ${{ matrix.mongodb-version }}
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
mongodb-replica-set: test-rs
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true