Run on preview deployments
Setup with Vercel repository dispatch events
name: Playwright + Argos Tests
on:
repository_dispatch:
types:
- "vercel.deployment.success"
permissions:
contents: read
# Required to access pull request metadata for Argos with GITHUB_TOKEN
pull-requests: read
jobs:
run-e2es:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: npm ci && npx playwright install --with-deps
- name: Print context for debugging optional
run: |
echo "URL: $BASE_URL"
- name: Run Playwright tests with Argos reporter
run: npx playwright test
env:
# URL of the preview deployment used by your test as the base URL.
BASE_URL: ${{ github.event.client_payload.deployment.url }}
# Provided by GitHub used by Argos to link builds to branches and pull requests
# Optional, if not provided Argos will not link builds to PRs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}Setup with GitHub deployment status events
Disable the Vercel Toolbar
Playwright
Cypress
Running without GITHUB_TOKEN
Last updated
Was this helpful?