Skip to content

P0: Add per-IP request rate limiting (#166) (#185) #208

P0: Add per-IP request rate limiting (#166) (#185)

P0: Add per-IP request rate limiting (#166) (#185) #208

Workflow file for this run

name: Unit Tests & Coverage
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: npm ci
- name: Run unit tests with coverage
run: npm run test:coverage
- name: Generate coverage summary
if: always()
run: npx c8 report --include 'build/src/**' --reporter text-summary 2>/dev/null || true
- name: Upload coverage to Codecov
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v4
with:
files: ./coverage/lcov.info
fail_ci_if_error: false