Skip to content

Getting Started

You'll need
  • a GitHub monorepo — 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 GitHub Actions workflow that runs your tests.
You'll have
  • your first report visible on the Flakiness.io dashboard, with a GitHub check posted on new pull requests.
  1. Sign in to Flakiness.io via GitHub.

    Sign in
  2. Create an Organization.

    Create Organization
  3. Install the Flakiness.io GitHub App. The App is the bridge between your repository and Flakiness.io: it grants read-only access to commit history and permission to post PR checks.

    Install the GitHub App
  4. Create a Project inside the organization, linked to your GitHub repository.

  5. 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.

  6. 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.

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