Skip to content

Cypress

Cypress #372

Workflow file for this run

# Run Cypress end-to-end tests after Vercel Deploys a new Preview Environment
---
name: Cypress
on: deployment_status
concurrency:
group: check-pr-${{ github.head_ref }}
cancel-in-progress: true
jobs:
run_cypress:
name: Cypress
if: github.event.deployment_status.state == 'success' && github.event.deployment.environment == 'Preview'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Cypress E2E
uses: cypress-io/github-action@v6
env:
CYPRESS_BASE_URL: ${{ github.event.deployment_status.target_url }}