Skip to content

.github/workflows/playwright.yml #11

.github/workflows/playwright.yml

.github/workflows/playwright.yml #11

Workflow file for this run

name: Playwright Tests
on:
deployment_status: # Trigger on deployment status changes
jobs:
run-e2es: # Job name for end-to-end tests
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' # Run only if deployment is successful
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install dependencies
run: npm ci # Using npm ci for clean installs
- name: Install Playwright browsers
run: npx playwright install --with-deps # Install Playwright browsers
- name: Run tests
run: npx playwright test # Execute Playwright tests