Skip to content

Update build.yml

Update build.yml #11

Workflow file for this run

name: build
on:
push:
branches:
- mongoose-5
pull_request:
branches:
- mongoose-5
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 'lts/*' ]
mongodb-version: ['4.0', latest]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test