Skip to content

E2E test on preview deployment #54

E2E test on preview deployment

E2E test on preview deployment #54

Workflow file for this run

name: E2E test on preview deployment
on:
deployment_status:
jobs:
run-e2es:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci && npx playwright install --with-deps
- name: Run tests
run: npx playwright test
env:
TEST_URL: ${{ github.event.deployment_status.environment_url }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 7