Skip to content

reside-eng/github-step-analyzer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 │
└─────────────────────┴───────────┴────────┴────────┴────────┘

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%