Skip to content

[Dependabot]: Bump express-rate-limit from 7.5.0 to 8.1.0 #416

[Dependabot]: Bump express-rate-limit from 7.5.0 to 8.1.0

[Dependabot]: Bump express-rate-limit from 7.5.0 to 8.1.0 #416

Workflow file for this run

name: CI API tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 15.x]
mongodb-version: ['4.2', '4.4']
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Install Node JS ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB ${{ matrix.mongodb-version }}
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Install dependencies
run: npm ci
- name: Run tests + show coverage
run: npm run coverage
env:
NODE_ENV: test
DB_URL: mongodb://localhost:27017/library
PORT: 3000
JWT_SECRET: samplecitestingsecrethahajkjkunless??
JWT_EXPIRE_TIME: 1h
SALT_ROUNDS: 10