Skip to content

E2E Tests

E2E Tests #5

Workflow file for this run

name: E2E Tests
on:
deployment_status:
jobs:
run-e2e-tests:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci && npx playwright install --with-deps
- name: Run tests
run: npm run test:e2e:ci
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.environment_url }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30