Skip to content

Getting Started

You'll need
  • a monorepo on GitHub or GitLab — tests and code live in the same repository. Flakiness.io keys results by commit, so test results and the code that produced them must share the same git history.
  • a CI workflow that runs your tests (GitHub Actions, GitLab CI/CD, or any other provider).
You'll have
  • your first report visible on the Flakiness.io dashboard, with a GitHub check posted on new pull requests (GitHub-linked projects only).
  1. Sign in to Flakiness.io with GitHub or GitLab.

    Choose the provider that hosts your repositories. You can connect the other provider later from your user settings and use either one to sign in.

    Sign in with GitHub Sign in with GitLab
  2. Create an Organization.

    Create Organization
  3. Connect your repository. Flakiness.io reads your commit history to line test results up with the code that produced them, so it needs read access to the repository.

    Install the Flakiness.io GitHub App. It grants read-only access to commit history and permission to post PR checks.

    Install the GitHub App

    Then create a Project inside your organization and link it to the repository. Installing the App on its own connects nothing: the Project is what ties a repository to Flakiness.io.

  4. Copy your flakinessProject identifier. Open your project page on Flakiness.io; the URL looks like https://flakiness.io/<orgSlug>/<projectSlug>. Your identifier is that <orgSlug>/<projectSlug> pair — you’ll paste it into the reporter config in the next step.

  5. Upload test results from CI. Pick your runner — each tile shows the install, config, and CI integration you need.

    Install the reporter:

    Terminal window
    npm install -D @flakiness/playwright

    Add it to your config:

    playwright.config.ts
    import { defineConfig } from '@playwright/test';
    export default defineConfig({
    reporter: [['@flakiness/playwright', {
    flakinessProject: 'my-org/my-app'
    }]],
    });

    Configure your CI:

    Grant the id-token: write permission: Playwright Test supports GitHub OIDC and uses flakinessProject for secretless authentication.

    .github/workflows/tests.yml
    jobs:
    test:
    runs-on: ubuntu-latest
    permissions:
    contents: read # for actions/checkout
    id-token: write # for Flakiness.io OIDC
    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-node@v4
    with:
    node-version: '20'
    - run: npm ci
    - run: npx playwright install --with-deps
    - run: npx playwright test

    For fork PRs or more advanced cases, see GitHub Actions Setup and GitHub Actions for Open Source Projects.

  6. Push a commit and open the dashboard. Your first report should appear within seconds of the test job finishing.