CircleCI โ
Run your Shiplight E2E tests in CircleCI and upload the results to Shiplight Cloud. CircleCI uses the same shiplight CLI as every other provider โ only the pipeline syntax differs.
Before you start โ
- A scaffolded Shiplight test project (
/shiplight init). See the CI/CD overview for how the pieces fit together. - An org API token from app.shiplight.ai/api-tokens, stored as a project environment variable named
SHIPLIGHT_API_TOKEN. - One-time: connect the repository in CircleCI. For a GitHub repository, install and authorize the CircleCI GitHub App for that repository.
Pipeline โ
Create .circleci/config.yml at your repository root:
yaml
version: 2.1
jobs:
e2e:
docker:
- image: cimg/node:22.14-browsers # -browsers variant ships the system libs Chromium needs
environment:
# SHIPLIGHT_API_TOKEN comes from a project env var / context.
steps:
- checkout
- run: curl -fsSL https://bun.sh/install | bash
- run: echo 'export PATH="$HOME/.bun/bin:$PATH"' >> "$BASH_ENV"
- run: bun install
- run: bun run playwright install chromium
- run: bun run shiplight test
workflows:
e2e:
jobs:
- e2eConnect and run the pipeline โ
After committing .circleci/config.yml:
- Create or select the project in CircleCI and connect your repository. For GitHub, use the CircleCI GitHub App integration.
- Open Project Settings โ Project Setup and add a pipeline with:
- Config source: your repository
- Config filepath:
.circleci/config.yml - Checkout source: your repository
- Save the pipeline.
- Open Project Settings โ Environment Variables and add
SHIPLIGHT_API_TOKENwith your Shiplight org API token as its value. - Push a commit or trigger the pipeline from CircleCI.
Notes โ
SHIPLIGHT_API_TOKENenables completed test report uploads; set it as a project environment variable or context.- With
SHIPLIGHT_API_TOKENset, AI-powered actions run through the Shiplight LLM proxy, and healed locators persist to the Shiplight Cloud action cache so later runs can reuse them. - The
cimg/node:*-browsersimage bundles the system libraries Chromium needs, so a plainbun run playwright install chromiumis enough. On a non-browser image, use--with-deps. - Failure triage on CircleCI: classification runs on the server for uploaded runs from any provider, but the optional autofix workflow (auto-triage) is GitHub Actions only.
- Project in a subdirectory (e.g.
tests/e2e)? Addworking_directory: ~/project/tests/e2eto the job, orcdinto it before each command.