Cypress #382
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |