CI/CD GUIDES · 7 MIN READ

Managing Flaky Tests in GitHub Actions and GitLab CI

Automate flaky test detection, PR comments, commit status checks, and quarantine in GitHub Actions, GitLab CI, CircleCI, and Jenkins.

GitHub Actions Integration with PR Comments & Status Checks

Integrate FlakeCheck into GitHub Actions in under two minutes. After your test step produces a JUnit, CTRF, or framework JSON report, stream it to FlakeCheck to automatically score flaky tests, post a Markdown reliability summary on the Pull Request, and publish a commit status check.

name: CI with FlakeCheck
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: pnpm test -- --reporter=junit --outputFile=junit.xml
        continue-on-error: true
      - uses: ./ci-templates/github-action
        with:
          gateway-url: ${{ secrets.FLAKECHECK_URL }}
          token: ${{ secrets.FLAKECHECK_TOKEN }}
          format: junit
          files: junit.xml

GitLab CI, CircleCI, and Jenkins Support

FlakeCheck ships ready-to-use templates in ci-templates/ for GitHub Actions, GitLab CI (.gitlab-ci.yml), CircleCI (.circleci/config.yml), and Jenkins (Jenkinsfile), all backed by the same idempotent webhook and CLI ingestion API.

Eliminate flaky tests automatically with FlakeCheck

Stream your JUnit, CTRF, Jest, Vitest, Playwright, Pytest, Mocha, or Go reports to FlakeCheck and get statistical scoring + auto-quarantine in minutes.

Related Guides