Skip to content
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'
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}}