diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 48ead75..8cfb697 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -123,6 +123,15 @@ jobs: E2E_BASE_URL=http://localhost:5173 E2E_MAILPIT_URL=http://mailpit:8025 \ pnpm --filter @dorfteich/web exec playwright test e2e/auth.spec.ts + # auth.spec.ts's own logins (contextForUser per test) already spend + # a good chunk of the login rate limit (10/min/IP, operations.md) — + # reset it before content.spec.ts's five more, or its later tests + # 429 (found by reproducing this job's failure locally, issue #32). + - name: Reset login rate limit between e2e packs + run: | + echo "DELETE FROM rate_limits WHERE key LIKE 'login%';" | \ + pnpm --filter @dorfteich/api exec prisma db execute --stdin --url "$DATABASE_URL" + - name: Run content pack run: | E2E_BASE_URL=http://localhost:5173 \