Skip to content

Adds backend governance controls to reduce operational risk and make API behavior safer and more predictable. #152

Adds backend governance controls to reduce operational risk and make API behavior safer and more predictable.

Adds backend governance controls to reduce operational risk and make API behavior safer and more predictable. #152

Workflow file for this run

name: E2E Tests
on:
pull_request:
push:
branches:
- main
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: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install chromium --with-deps
- name: Build app
run: npm run build
- name: Run E2E tests
run: npm run test:e2e
env:
CI: 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