[Dependabot]: Bump express-rate-limit from 7.5.0 to 7.5.1 #397
Workflow file for this run
This file contains hidden or 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 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 |