Skip to content

Playwright Tests

Playwright Tests #297

Workflow file for this run

name: Playwright Tests
on:
deployment_status:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
cancel-in-progress: false
jobs:
e2e:
name: Test e2e
runs-on: ubuntu-latest
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
container:
image: mcr.microsoft.com/playwright:v1.50.1-noble
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Run tests
run: pnpm test:e2e
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.environment_url }}
HOME: /root
- name: Upload test results
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: playwright-test-results
path: src/e2e/test_output
retention-days: 7