Skip to content

Commit

Permalink
chore: apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
timeowilliams committed Sep 14, 2024
1 parent 48854d9 commit 1fe732a
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 260 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/package-size-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,11 +20,10 @@ jobs:
run: npm install

- name: Run Package Size Badge Action
uses: ./ # This will use the local action in the current repo
uses: ./ # This will use the local action in the current repo
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
path: "build/static/js/*.js" # Path to the JS files to check size
preset: "app" # Define preset: 'app', 'big-lib', or 'small-lib'
path: "build/static/js/*.js" # Path to the JS files to check size
preset: "app" # Define preset: 'app', 'big-lib', or 'small-lib'
label: "Bundle Size"
limit: "500" # Set size limit in KB
color: "green" # Badge color
limit: "500" # Set size limit in KB
color: "green" # Badge color
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
uses: your-username/package-size-badge-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
path: "build/static/js/*.js" # User specifies the path to their JS bundles
preset: "app" # Can be "app", "big-lib", or "small-lib"
limit: "300" # Optional size limit (in KB)
color: "green" # Optional badge color
path: "build/static/js/*.js" # User specifies the path to their JS bundles
preset: "app" # Can be "app", "big-lib", or "small-lib"
limit: "300" # Optional size limit (in KB)
color: "green" # Optional badge color
```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
required: true
path:
description: "Path to the JavaScript bundle(s) to be analyzed"
required: true # Users must specify the path
required: true # Users must specify the path
label:
description: "Label for the badge (e.g., Bundle Size)"
required: false
Expand Down
Loading

0 comments on commit 1fe732a

Please sign in to comment.