Coder Social home page Coder Social logo

github-step-analyzer's Introduction

GitHub Step Analyzer

This CLI tool calculates timing statistics for a given GitHub Actions step across multiple repos.

Usage

  USAGE
    gh-step-analyze
      --token <token>
      --repo <repo> [--repo <repo>, ...[--repo <n>]]
      --workflow <workflow>
      --job <job>
      --step <step>
      --days [days]

  OPTIONS
    --token       GitHub auth token
    --repo        Repos to analyze (e.g. --repo foo/bar --repo foo/baz --repo fizz/buzz)
    --workflow    Workflow name
    --job         Job name
    --step        Step name
    --days        Number of days to analyze (default: 2)

  EXAMPLES
    $ gh-job-analyze
      --token gh_1232
      --repo foo/bar --repo foo/bar-improved
      --workflow "Build and Test"
      --job build
      --step "Install dependencies"
      --days 5

Example Output

./lib/main.js \
  --token $(gh auth token) \
  --repo foo/bar \
  --repo fizz/buzz \
  --workflow "Build and Test" \
  --job "build" \
  --step "Install dependencies"

✔ Downloading and analyzing 2 days of job runs...

┌─────────────────────┬───────────┬────────┬────────┬────────┐
│ Repo                │ Runs      │ Avg.   │ Min.   │ Max.   │
├─────────────────────┼───────────┼────────┼────────┼────────┤
│ foo/bar             │ 34        │ 2m 6s  │ 1m 12s │ 3m 21s │
├─────────────────────┼───────────┼────────┼────────┼────────┤
│ fizz/buzz           │ 26        │ 1m 49s │ 1m 7s  │ 2m 48s │
└─────────────────────┴───────────┴────────┴────────┴────────┘

github-step-analyzer's People

Contributors

htunnicliff avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.