From 34437a7f28abfacd812e504ab0aa4abc1b7d02d1 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Tue, 11 Feb 2025 11:29:15 +0100 Subject: [PATCH] run integration tests against TanStack deployment on Vercel --- .github/workflows/vercel-integration.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vercel-integration.yml b/.github/workflows/vercel-integration.yml index 5f622560..63dd0cba 100644 --- a/.github/workflows/vercel-integration.yml +++ b/.github/workflows/vercel-integration.yml @@ -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 @@ -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 }}