Skip to content
# 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

View workflow run for this annotation

GitHub Actions / .github/workflows/playwright_tests_on_vercel.yml

Invalid workflow file

The workflow is not valid. .github/workflows/playwright_tests_on_vercel.yml (Line: 8, Col: 9): Unexpected symbol: '='. Located at position 19 within expression: github.event_name = 'deployment_status' && github.event.deployment_status.state == 'success'
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}}