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:

Prompt for your coding agent
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.
Pull request merge-gate loop: a pull request triggers a real browser to run your user flow. If it passes, merge the PR; if it fails, inspect the replay, fix and push back to the pull request.

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 environmentWhere to start
Vercel preview deploymentsTest Vercel previews
Netlify Deploy PreviewsTest Netlify Deploy Previews
Staging URL or server started in CIContinue 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.

  1. 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
  2. Add .github/workflows/endform-e2e.yml

    Grant id-token: write so the CLI authenticates through OIDC, and point BASE_URL at your target environment (or omit BASE_URL if your Playwright webServer starts 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

Check that it worked

Push your workflow on a branch and open a pull request:

  • CI logs and exit code: npx endform@latest test prints 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 via process.env in 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.

Last updated