DEV Community

Cover image for Track your GitHub workflow performance in every pull request
Jared Rhizor
Jared Rhizor

Posted on • Edited on

Track your GitHub workflow performance in every pull request

Tutorial

You can view a chart of GitHub job runtimes in a PR comments in just two minutes!

1. Install GitHub Application

Go to the Stoat GitHub application page and install the application for your repository.

2. Install CLI

Requirements:

  • Node/NPM
  • Mac/Linux

To install the Stoat CLI, run:

npm i -g stoat
Enter fullscreen mode Exit fullscreen mode

3. Initialize Stoat

To initialize a Stoat project within a Git repository, run:

stoat init
Enter fullscreen mode Exit fullscreen mode

The initialization command will create a configuration file for Stoat at .stoat/config.yaml and will give you the option to add the Stoat GitHub action as the final step in all GitHub jobs. Say yes for every job you want to track job runtimes for. Merge these changes into your repo.

That's it!

You will now see build runtimes tracked in your PRs! Here's what the build history looks like after multiple default branch builds and commits in a PR:

screenshot

This type of graph will be posted in a PR comment and updated as new commits are pushed to the PR.

There's more!

Stoat aims to turn pull request comments into developer dashboards. It already supports previews for build artifacts (including test coverage reports, documentation static sites, StorybookJS, and more).

screenshot

Check out the docs for more info »

Top comments (0)