Skip to content

Commit

Permalink
Add Playwright test workflow for Vercel deployment
Browse files Browse the repository at this point in the history
Signed-off-by: IsaiahA21 <[email protected]>
  • Loading branch information
IsaiahA21 committed Oct 5, 2024
1 parent b108a08 commit ef36b3f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/playwright_tests_on_vercel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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}}

0 comments on commit ef36b3f

Please sign in to comment.