GuidesUsing Endform
Set up Endform in CI
Run your Playwright suite on Endform from GitHub Actions, GitLab CI, CircleCI, or any other CI pipeline.
Running Endform in CI moves browser execution off your CI runners onto Endform's cloud infrastructure. Every test runs in its own isolated browser in parallel, so your CI job only needs Node.js and your project dependencies, with no browser downloads and no sharding config.
Working with a coding agent? Give it this prompt and it will configure your pipeline for you:
Set up Endform in CI for this Playwright project by following
https://endform.dev/docs/using-endform/ci.md.
Check which CI provider this repo uses, add or update the workflow,
and tell me any GitHub App or secret steps I need to complete.

Choose what your CI tests run against
If your app deploys previews on Vercel or Netlify, use the dedicated guide so Endform waits for each preview automatically:
| Target environment | Where to start |
|---|---|
| Vercel preview deployments | Test Vercel previews |
| Netlify Deploy Previews | Test Netlify Deploy Previews |
| Staging URL or server started in CI | Continue below (see Test against a local server if your CI job starts the app with webServer) |
Add Endform to your pipeline
Select your CI provider below. Endform requires Node.js 22.15 or newer on the CI runner, and does not need npx playwright install.
GitHub Actions is the fastest path because the Endform GitHub App authenticates via GitHub OIDC with zero static secrets and posts test summaries and inline failure comments on your pull requests.
-
Install the Endform GitHub App
Connect your repository to your Endform organization from the CLI (or in Settings → Integrations in the Endform dashboard):
npx endform@latest connect github -
Add
.github/workflows/endform-e2e.ymlGrant
id-token: writeso the CLI authenticates through OIDC, and pointBASE_URLat your target environment (or omitBASE_URLif your PlaywrightwebServerstarts the app inside the job):.github/workflows/endform-e2e.yml name: Endform E2E on: pull_request: push: branches: [main] permissions: contents: read id-token: write jobs: e2e: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: 22 - name: Install dependencies run: npm ci - name: Run Playwright suite on Endform env: BASE_URL: https://staging.example.com run: npx endform@latest test
Create an organization API key and store it as a GitHub Actions secret without printing the raw key:
npx endform@latest api-key create --name "GitHub Actions" | gh secret set ENDFORM_API_KEYThen pass ENDFORM_API_KEY: ${{ secrets.ENDFORM_API_KEY }} in the env: block of the test step. You can omit id-token: write when authenticating with an API key. See CI authentication.
-
Create a masked
ENDFORM_API_KEYvariableCreate an organization API key and save it as a masked GitLab CI/CD variable (or add it under Settings → CI/CD → Variables in GitLab):
npx endform@latest api-key create --name "GitLab CI" | glab variable set ENDFORM_API_KEY --masked -
Add an Endform job to
.gitlab-ci.yml.gitlab-ci.yml e2e: image: node:22-slim variables: BASE_URL: https://staging.example.com script: - npm ci - npx endform@latest test
-
Store
ENDFORM_API_KEYin CircleCICreate an organization API key with
npx endform@latest api-key create --name "CircleCI"(or in the Endform dashboard under Settings → API keys) and add it as an environment variable in your CircleCI project settings. -
Add an Endform job to
.circleci/config.yml.circleci/config.yml version: 2.1 jobs: e2e: docker: - image: cimg/node:22.15 environment: BASE_URL: https://staging.example.com steps: - checkout - run: npm ci - run: npx endform@latest test workflows: test: jobs: - e2e
Any CI provider (Azure Pipelines, Bitbucket Pipelines, Buildkite, Jenkins, and others) works with three steps:
- Use an image or runner with Node.js 22.15 or newer and install your project dependencies (no browser installation needed).
- Create an organization API key (
npx endform@latest api-key create --name "CI") and store it as a masked secret namedENDFORM_API_KEY. See CI authentication. - Run
npx endform@latest testwithBASE_URL(and anyE2E_*test secrets) exported in the job environment.
If your CI provider performs a shallow checkout and Endform cannot infer your default branch automatically, set ENDFORM_GIT_DEFAULT_BRANCH (for example main) so Endform compares pull request attempts against the right reference runs.
Check that it worked
Push your workflow on a branch and open a pull request:
- CI logs and exit code:
npx endform@latest testprints a link to the run in the Endform dashboard as soon as it starts, streams test results, and exits non-zero if any non-quarantined test fails. - GitHub pull request feedback: With the Endform GitHub App installed, Endform updates a summary comment on the pull request and adds inline comments on failing test lines that appear in the diff.
- Environment variables: Variables prefixed with
E2E_(and variables read viaprocess.envin your tests) are forwarded to Endform's remote runners automatically. See What is sent to runners. - Custom reporters: Playwright reporters such as JUnit, HTML, or custom reporters run normally and write files to your CI runner workspace. See Custom reporters.
- App started inside CI: If your workflow starts a local app or Docker stack via Playwright's
webServer, Endform routes remote browser traffic through your CI runner automatically. See Test against a local server.
Wait for each pull request's Vercel preview URL and bypass Deployment Protection automatically.
Test Netlify Deploy PreviewsTrigger Endform directly from Netlify after each Deploy Preview publishes.
CI authenticationFull reference for GitHub OIDC, ENDFORM_API_KEY, and credential precedence.
Replace Playwright shardingSimplify existing sharded CI workflows into a single Endform job.
Last updated