Bump rate-limit-redis from 4.3.1 to 5.0.0 in /Cab-Connect-Backend #371
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: Backend CI | |
| on: | |
| push: | |
| paths: | |
| - "Cab-Connect-Backend/**" | |
| pull_request: | |
| paths: | |
| - "Cab-Connect-Backend/**" | |
| jobs: | |
| unit-tests: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: Cab-Connect-Backend | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: Cab-Connect-Backend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run unit tests | |
| run: npx vitest run src/tests/basic.test.js src/tests/rules.test.js | |
| env: | |
| NODE_ENV: test | |
| integration-tests: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: Cab-Connect-Backend | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: Cab-Connect-Backend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run integration tests | |
| run: npx vitest run src/tests/api.integration.test.js | |
| env: | |
| NODE_ENV: test |