Skip to content

Merge pull request #17 from mariojrrc/dependabot/npm_and_yarn/cacheab… #26

Merge pull request #17 from mariojrrc/dependabot/npm_and_yarn/cacheab…

Merge pull request #17 from mariojrrc/dependabot/npm_and_yarn/cacheab… #26

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
mongodb-version: ['4.2', '4.4', '5.0']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: MongoDB in GitHub Actions
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Install dependencies
run: npm install
- run: npm run build --if-present
- run: npm run test-ci