utroda / bash-size-limit-circle-ci

Bash script to check current PR size vs Production Branch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bash Size Limit Report

This bash script leverages Size Limit package to check a pull request size change to master. This is helpful when developing component frameworks to see how your additions might be effecting initial loads.

It's hard for SaaS companies to leverage Github actions currently due to security concerns[1]. This script can be run in Circle CI without the use of a GHA.

[1] See: How We Discovered Vulnerabilities in CI/CD Pipelines of Popular Open-Source Projects.

This does require setting up a GITHUB_TOKEN within CircleCI.

Example config.yml

checkSizeLimit:
  requires
    - install 
  steps:
    - run:
        name: Check Size
        command: bin/checkSize

About

Bash script to check current PR size vs Production Branch


Languages

Language:Shell 100.0%