Skip to content

Merge pull request #2947 from weareopensource/dependabot/npm_and_yarn… #1587

Merge pull request #2947 from weareopensource/dependabot/npm_and_yarn…

Merge pull request #2947 from weareopensource/dependabot/npm_and_yarn… #1587

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
mongodb-version: ['6.0', '7.0']
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Start Mongo ${{ matrix.mongodb-version }}
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Run tests
run: |
npm i
npm run test:lint
npm run test:coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}