[Snyk] Security upgrade mongodb from 5.2.0 to 5.8.0 #186
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Node ${{ matrix.node }}, Mongo ${{ matrix.mongodb-version }}, Agenda ${{ matrix.agenda-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ['14', '16', '18'] | |
mongodb-version: [ 3.6, 4.0, 4.2, 4.4, 5.0 ] | |
agenda-version: [ 3.1, 4.0 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js v${{ matrix.node }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: ${{ matrix.mongodb-version }} | |
- run: npm install | |
- name: Install agenda | |
run: npm i agenda@${{ matrix.agenda-version }} | |
- run: npm test | |
env: | |
CI: true |