Skip to content

Commit e01e649

Browse files
authored
Merge pull request #495 from webstackdev/bugfix/e2e-stress-test-fixes
Bugfix/e2e stress test fixes
2 parents ada79b8 + 7e6d5c1 commit e01e649

55 files changed

Lines changed: 1767 additions & 646 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.env.example‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Local dev server configuration
2+
DEV_SERVER_PORT="4321"
3+
4+
# For Docker Compose use with container mocks for E2E setup
5+
COMPOSE_PROJECT_NAME="wb-e2e"
6+
7+
# Mock ConvertKit API (WireMock container that backs E2E tests local
8+
# and on GitHub Actions, production on Vercel)
9+
CONVERTKIT_HTTP_PORT="9010"
10+
CONVERTKIT_API_KEY="mock-convertkit-key"
11+
CONVERTKIT_FORM_ID="100000"
12+
13+
# Vercel automatically sends the CRON_SECRET as an Authorization header
14+
# when it invokes your cron job. Your endpoint can then verify this secret
15+
# to ensure the request originated from Vercel.
16+
CRON_SECRET="local-cron-secret"
17+
18+
# Mock Resend API (WireMock container that backs transactional email tests
19+
# local and on GitHub Actions, production on Vercel)
20+
RESEND_HTTP_PORT="9011"
21+
RESEND_API_KEY="mock-resend-key"
22+
23+
# Upstash-compatible Redis mock for rate limits + cron keepalive keys (local
24+
# and on GitHub Actions, production on Vercel)
25+
UPSTASH_HTTP_PORT="8079"
26+
UPSTASH_REDIS_PORT="6380"
27+
UPSTASH_TOKEN="local-dev-token"
28+
29+
# Vercel Marketplace Integration for Upstash Redis used with rate limiting on API endpoints
30+
# (local and on GitHub Actions, production on Vercel)
31+
KV_URL="redis://default:local-dev-token@127.0.0.1:6380"
32+
KV_REST_API_URL="http://127.0.0.1:8079"
33+
KV_REST_API_TOKEN="local-dev-token"
34+
KV_REST_API_READ_ONLY_TOKEN="local-dev-token"
35+
REDIS_URL="redis://default:local-dev-token@127.0.0.1:6380"
36+
37+
# Supabase configuration
38+
# - SUPABASE_URL / SUPABASE_KEY: client + server runtime credentials used in Astro and API routes.
39+
# - SUPABASE_SERVICE_ROLE_KEY: server-side key for tests and cron endpoints (never expose to browser).
40+
# - SUPABASE_HEALTH_TIMEOUT: controls how long we wait for the local Supabase container to become healthy.
41+
# - SUPABASE_DB_PASSWORD / SUPABASE_PROJECT_REF / SUPABASE_ACCESS_TOKEN: only needed when pushing
42+
# migrations to the hosted project (GitHub "build" workflow). Leave them empty locally unless you
43+
# have production access.
44+
SUPABASE_HEALTH_TIMEOUT="240"
45+
SUPABASE_URL="http://127.0.0.1:54321"
46+
SUPABASE_KEY="sb_publishable_example"
47+
SUPABASE_SERVICE_ROLE_KEY="sb_secret_example"
48+
SUPABASE_DB_PASSWORD="example-db-password"
49+
SUPABASE_PROJECT_REF="exampleprojectref"
50+
SUPABASE_ACCESS_TOKEN="sbp_example_personal_access_token"
51+
52+
# Observability / external services
53+
SENTRY_AUTH_TOKEN="dev-placeholder-sentry-token"
54+
SENTRY_DSN="https://examplePublicKey@o0.ingest.sentry.io/0"
55+
56+
# Vercel deployment vars
57+
VERCEL_TOKEN="p1vT5d4M1H2q0NjEtR9bJVxu"
58+
VERCEL_PROJECT_ID="prj_d24xWkR5sY8pMn2qBcLe8F0Z"
59+
VERCEL_ORG_ID="team_C7kQw5vXn0PfH3sJt2Gb9LrY"
60+
61+
# Used for social shares on Mastodon
62+
WEBMENTION_IO_TOKEN="dev-webmention-token"

‎.github/dependabot.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@ updates:
55
versioning-strategy: "increase"
66
schedule:
77
interval: "weekly"
8-
open-pull-requests-limit: 4
8+
open-pull-requests-limit: 1
99
labels:
1010
- "type: dependencies 🔗"
1111
- "automerge 🤞"
12+
groups:
13+
npm-dependencies:
14+
patterns:
15+
- "*"
1216
- package-ecosystem: "github-actions"
1317
directory: "/"
1418
schedule:
1519
interval: "weekly"
20+
open-pull-requests-limit: 1
21+
groups:
22+
github-actions:
23+
patterns:
24+
- "*"

‎.github/workflows/branch-protection.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check branch naming convention
13+
env:
14+
BRANCH_NAME: ${{ github.head_ref }}
1315
run: |
14-
BRANCH_NAME="${{ github.head_ref }}"
16+
: "${BRANCH_NAME:?github.head_ref is required}"
1517
1618
# Valid patterns: bugfix/, hotfix/, feature/, infrastructure/, maintenance/, content/
1719
if [[ ! $BRANCH_NAME =~ ^(bugfix|hotfix|feature|infrastructure|maintenance|content)/[a-z0-9-]+$ ]]; then
@@ -36,8 +38,10 @@ jobs:
3638
runs-on: ubuntu-latest
3739
steps:
3840
- name: Ensure PR targets main
41+
env:
42+
TARGET_BRANCH: ${{ github.base_ref }}
3943
run: |
40-
TARGET_BRANCH="${{ github.base_ref }}"
44+
: "${TARGET_BRANCH:?github.base_ref is required}"
4145
4246
if [[ "$TARGET_BRANCH" != "main" ]]; then
4347
echo "⚠️ Warning: PR is targeting '$TARGET_BRANCH' instead of 'main'"

‎.github/workflows/build-and-test.yml‎

Lines changed: 0 additions & 250 deletions
This file was deleted.

0 commit comments

Comments
 (0)