Skip to content

fix: repair frontend production build #77

fix: repair frontend production build

fix: repair frontend production build #77

Workflow file for this run

name: Staging E2E Tests
# Runs only on direct pushes to main (i.e. after a PR is merged).
# Not triggered on pull_request to avoid running against staging on every PR.
on:
push:
branches:
- main
paths:
- 'frontend/**'
jobs:
e2e-staging:
name: Playwright — Staging
runs-on: ubuntu-latest
timeout-minutes: 20
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run staging E2E suite
run: npx playwright test --project=staging
env:
STAGING_URL: ${{ secrets.STAGING_URL }}
CI: 'true'
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-staging-report
path: frontend/playwright-report/
retention-days: 14