Skip to content

feat: add an interactive guided-fix flow for network mismatches #950

feat: add an interactive guided-fix flow for network mismatches

feat: add an interactive guided-fix flow for network mismatches #950

Workflow file for this run

name: E2E Tests

Check failure on line 1 in .github/workflows/e2e.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/e2e.yml

Invalid workflow file

(Line: 38, Col: 9): 'run' is already defined
on:
pull_request:
paths:
- 'frontend/**'
push:
branches:
- main
paths:
- 'frontend/**'
jobs:
e2e:
name: Playwright E2E
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Build shared API schemas
working-directory: packages/api-schemas
run: |
npm ci
# TypeScript 5.9 removed moduleResolution=node10; build with 5.5 for compatibility
npx -p typescript@5.5.4 tsc -p tsconfig.json
run: npm ci && npm run build
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install Playwright browsers
run: npx playwright install chromium --with-deps
- name: Run E2E tests
run: npm run test:e2e
env:
CI: true
VITE_E2E_STUB_BALANCES: "true"
# Upload the HTML report so it's browsable in the Actions UI
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: frontend/playwright-report/
retention-days: 30
# Upload screenshots and videos captured on test failure
- name: Upload failure artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-failure-artifacts
path: frontend/test-results/
retention-days: 14