nginx - true IP distinguishing in rate limiting #76
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 | |
| on: | |
| push: | |
| branches: [main, v3] | |
| pull_request: | |
| jobs: | |
| backend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: { working-directory: backend } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - run: uv sync | |
| - run: uv run ruff check . | |
| - run: uv run ruff format --check . | |
| - run: uv run mypy app | |
| - run: uv run pytest | |
| frontend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: { working-directory: frontend } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: { node-version: 22, cache: npm, cache-dependency-path: frontend/package-lock.json } | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npx prettier --check src | |
| - run: npx tsc -b --noEmit || npx tsc --noEmit | |
| - run: npm test -- --run | |
| e2e: | |
| runs-on: ubuntu-latest | |
| needs: [backend, frontend] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - uses: actions/setup-node@v4 | |
| with: { node-version: 22, cache: npm, cache-dependency-path: frontend/package-lock.json } | |
| - run: cd backend && uv sync && (uv run uvicorn app.main:app --port 8000 &) | |
| - run: cd frontend && npm ci && npx playwright install --with-deps chromium | |
| - run: cd frontend && npm run test:e2e |