Files
supabase__server/.github/workflows/e2e.yml
Katerina Skroumpelou c8fd9de39e test(e2e): cover edge functions on the real Deno edge runtime (#111)
* test(e2e): cover edge functions on the real Deno edge runtime

* fix(e2e): work around CLI import-scanner crash on vendored JSDoc examples
2026-08-13 12:11:32 +03:00

56 lines
1.4 KiB
YAML

name: E2E
# Separate from the main CI workflow because this one needs Docker (local
# Supabase stack). The suite tests dist/, real JWKS, and real HTTP servers —
# see e2e/README.md.
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
- uses: supabase/setup-cli@46f7f98c7f948ad727d22c1e67fab04c223a0520 # v3.0.0
with:
version: latest
- run: pnpm install --frozen-lockfile
# The E2E suite imports from dist/, not src/ — build first.
- run: pnpm build
- name: Typecheck E2E suite
run: pnpm typecheck:e2e
# The edge function imports the packed library artifact — vendor it
# into supabase/functions before the stack starts (see e2e/README.md).
- run: pnpm vendor:e2e
- name: Start local Supabase stack
run: supabase start
working-directory: e2e
- run: pnpm gen:env
- run: pnpm test:e2e
- name: Stop local Supabase stack
if: always()
run: supabase stop --no-backup
working-directory: e2e