Skip to content

A GitHub Action that finds flaky tests in a repository based on the test runs of a given branch.

License

Notifications You must be signed in to change notification settings

Staffbase/github-action-find-flaky-tests

Repository files navigation

🔎 FindFlakyTests Action

A GitHub Action that finds flaky tests in a repository based on the test runs of a given branch. Afterward, it posts a comment in a given Slack channel with the results.

name: Find flaky tests
on:
  # At 05:00 on Monday.
  schedule:
    - cron: '0 5 * * 1'

jobs:
  flaky_tests:
    name: Flaky tests
    runs-on: ubuntu-latest
    steps:
      - name: Find flaky tests
        uses: Staffbase/github-action-find-flaky-tests@<version>
        with:
          # identifier for the slack channel
          slack-channel-id: 45678787976
          # name of the slack channel
          slack-channel-name: '#flaky-tests'
          # optional: name of the repository where it should check, default: current repository
          repository: 'Staffbase/test-flaky'
          # optional: name of the branch where it should check, default: main
          branch: 'master'
          # prefix of the test run which should be filtered out
          prefix: 'test-'
          # URL of the Slack incoming webhooks
          slack-incoming-webhooks-url: ${{ secrets.SLACK_INCOMING_WEBHOOKS_URL }}
          # GitHub token
          token: ${{ secrets.GITHUB_TOKEN }}

Release 🔖

To create a new release just use this page and publish the draft release.

Contributing 👥

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Staffbase GmbH Staffbase GmbH
Staffbase is an internal communications platform built to revolutionize the way you work and unite your company. Staffbase is hiring: jobs.staffbase.com
GitHub | Website | Jobs

About

A GitHub Action that finds flaky tests in a repository based on the test runs of a given branch.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages