.github/workflows/playwright.yml #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |