ReferenceIntegrations

Vercel

Reference for the Endform Vercel integration, how it links GitHub Actions runs to Vercel preview deployments, and how it reports Vercel deployment checks.

The Endform Vercel integration connects your Vercel projects to Endform so GitHub Actions workflows can wait for each pull request's preview deployment, bypass Vercel Deployment Protection automatically, run your Playwright suite against the preview URL, and report the result as a Vercel deployment check.

For step-by-step setup, see Test Vercel previews.

Prerequisites and installation

Testing Vercel previews with Endform requires both integrations connected to the same Endform organization:

  1. Endform GitHub App installed on the repository that deploys to Vercel (npx endform@latest connect github).
  2. Endform Vercel integration installed on the Vercel team or account (npx endform@latest connect vercel, or installed from the Vercel Marketplace).

Installing from the Vercel Marketplace can either create a new Endform account managed through Vercel or connect an Endform organization you already have. See Vercel Marketplace accounts for how the two differ.

Your GitHub Actions workflow then runs endformdev/actions/run-with-vercel-deployment before npx endform@latest test, with id-token: write in its permissions.

How it works

When a pull request triggers both Vercel and GitHub Actions for the same commit:

  1. Endform matches the GitHub Actions workflow run to the Vercel deployment for that commit SHA.
  2. run-with-vercel-deployment waits until the preview deployment is ready, exports the preview URL, and passes Endform a Deployment Protection bypass header.
  3. When npx endform@latest test starts, Endform creates a Vercel deployment check marked as running.
  4. When the suite finishes, Endform updates the Vercel deployment check with the final conclusion and a link to the run in the Endform dashboard.

Endform only links a test run to a Vercel deployment when the same job runs run-with-vercel-deployment first, and the deployment comes from a Git commit that Endform can match to the GitHub Actions workflow run.

Merge blocking

Vercel deployment checks created by Endform are currently non-blocking on Vercel. To block merging when tests fail, configure the GitHub Actions workflow job (or the Endform GitHub check) as a required status check in your GitHub branch protection rules.

Sub-pages

Last updated