Skip to content

Commit

Permalink
run integration tests against TanStack deployment on Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Feb 11, 2025
1 parent 00c0d70 commit 34437a7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/vercel-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ jobs:
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'
if: |
github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && (
github.event.deployment_status.environment == 'Preview – apollo__experimental-nextjs-app-support' ||
github.event.deployment_status.environment == 'Preview – apollo__client-integration-tanstack-start'
)
runs-on: ubuntu-latest
name: Run Playwright tests against Vercel deployment
name: Run Playwright tests against Vercel deployment ${{ github.event.deployment_status.environment }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
Expand All @@ -39,7 +43,14 @@ jobs:
- run: npx playwright install-deps
if: steps.playwright-cache.outputs.cache-hit == 'true'

- name: "Run Playwright tests against Vercel deployment"
- name: "Run Playwright tests against Vercel deployment - Next.js"
if: github.event.deployment_status.environment == 'Preview – apollo__experimental-nextjs-app-support'
run: yarn workspace @integration-test/nextjs run test | tee $GITHUB_STEP_SUMMARY; exit ${PIPESTATUS[0]}
env:
BASE_URL: ${{ github.event.deployment_status.environment_url }}

- name: "Run Playwright tests against Vercel deployment - TanStack Start"
if: github.event.deployment_status.environment == 'Preview – apollo__client-integration-tanstack-start'
run: yarn workspace @integration-test/tanstack-start run test | tee $GITHUB_STEP_SUMMARY; exit ${PIPESTATUS[0]}
env:
BASE_URL: ${{ github.event.deployment_status.environment_url }}

0 comments on commit 34437a7

Please sign in to comment.