Add local supabase for DB isolation

This commit is contained in:
MartinBraquet
2026-02-17 12:10:17 +01:00
parent b7d1fd9903
commit f7c0d77e9c
29 changed files with 2590 additions and 287 deletions

58
.github/workflows/ci-e2e.yml vendored Normal file
View File

@@ -0,0 +1,58 @@
name: E2E Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
e2e:
name: E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'yarn'
- name: Install Java (for Firebase emulators)
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Playwright browsers
run: npx playwright install chromium --with-deps
- name: Run E2E tests
env:
SKIP_DB_CLEANUP: true # Don't try to stop Docker in CI
run: |
# chmod +x scripts/e2e.sh
yarn test:e2e
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results/
retention-days: 7

View File

@@ -1,17 +1,16 @@
name: CI
name: Jest Tests
on:
push:
branches:
- main
branches: [ main ]
pull_request:
branches:
- main
branches: [ main ]
jobs:
ci:
name: Tests
name: Jest Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
@@ -21,9 +20,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'yarn'
- name: Install dependencies
run: yarn install
run: yarn install --frozen-lockfile
- name: Type check
run: echo skipping #npx tsc --noEmit
@@ -46,18 +46,6 @@ jobs:
# "web/coverage/lcov.info" \
# > coverage/lcov.info
# Optional: Playwright E2E tests
- name: Install Playwright deps
run: |
npx playwright install chromium
# npx playwright install --with-deps
# npm install @playwright/test
- name: Run E2E tests
run: |
chmod +x scripts/e2e.sh
yarn test:e2e
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with: