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
# Triggers on deployment status events | ||
on: | ||
deployment_status: | ||
jobs: | ||
run-end2endTests: | ||
# Only run if the deployment was successful | ||
if: github.event_name = 'deployment_status' && github.event.deployment_status.state == 'success' | ||
Check failure on line 8 in .github/workflows/playwright_tests_on_vercel.yml
|
||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the code from the repository | ||
- uses: actions/checkout@v2 | ||
# Install project dependencies and Playwright (including browsers) | ||
- name: Install dependencies | ||
run: npm ci && npx playwright install --with deps | ||
# Run Playwright tests | ||
- name: Run tests | ||
run: npx playwright test | ||
env: | ||
BASE_URL: ${{github.event.deployment_status.environment_url}} | ||