Skip to content

Commit

Permalink
run playwright tests only against next.js deployment (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas authored Jan 8, 2025
1 parent 9589d81 commit c125a08
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/vercel-integration.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: Playwright Tests
name: Vercel Integration Tests

on:
deployment_status:
jobs:
run-e2es:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
log:
runs-on: ubuntu-latest
steps:
- name: Log the deployment status
run: echo 'Deployment status is ${{ toJSON(github.event.deployment_status) }}'

run-next-e2e:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && github.event.deployment_status.environment == 'Preview – apollo__experimental-nextjs-app-support'
runs-on: ubuntu-latest
name: Run Playwright tests against Vercel deployment
defaults:
Expand Down

0 comments on commit c125a08

Please sign in to comment.