DEV Community

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

Posted on • Edited on

2

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 »

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay