Skip to content

A Github Action for reporting test information from BuildPulse to a Discord channel

License

Notifications You must be signed in to change notification settings

Rabatta-ApS/BuildPulse-Discord

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

BuildPulse-Discord

A Github Action for reporting test information from BuildPulse to a Discord channel using a Discord Webhook

- name: Send Digest
  uses: Rabatta-ApS/BuildPulse-Discord@v2.1.0
  with:
    buildPulse-api-token: ${{ secrets.BUILDPULSE_API_TOKEN }}
    discord-webhook: ${{ secrets.DISCORD_BUILDPULSE_WEBHOOK }}

Repository

By default the action fetches tests from the repository that it is being run in. Alternatively, you can specify another repository using the repository input.

- name: Send Digest
  uses: Rabatta-ApS/BuildPulse-Discord@v2.1.0
  with:
    buildPulse-api-token: ${{ secrets.BUILDPULSE_API_TOKEN }}
    discord-webhook: ${{ secrets.DISCORD_BUILDPULSE_WEBHOOK }}
    repository: facebook/react

API Token

You can generate a BuildPulse API token for your organization at https://buildpulse.io/account/@<organization>/api-token.

For example, if your organization on GitHub is https://github.com/facebook, then you'd visit https://buildpulse.io/account/@facebook/api-token to generate your API token.

Example

See the most disruptive tests so you know exactly where to focus first for maximum impact.

Screenshot of message posted by BuildPulse-Discord action

The disruptiveness ratio shows the proportion of test runs that failed due to a flaky outcome. For the first test shown above, we see that 41% of the test runs failed due to flakiness.

About

A Github Action for reporting test information from BuildPulse to a Discord channel

Resources

License

Stars

Watchers

Forks

Packages