Skip to content

Commit

Permalink
chore: add size-limit (#40)
Browse files Browse the repository at this point in the history
* chore: add size-limit

* chore: add size script

* chore: update size-limit workflow
  • Loading branch information
dzianis-dashkevich authored Dec 14, 2024
1 parent 0c9b14f commit f5794a1
Show file tree
Hide file tree
Showing 4 changed files with 1,576 additions and 37 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/limit-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "limit-size"
on:
pull_request:
branches:
- main
jobs:
size:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

# install node version from .nvmrc
- name: Install Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

# install deps
- name: Install Dependencies
run: npm ci

- name: Size Limit
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions .size-limit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"path": "packages/playback/dist/main/core/cjs/index.min.js",
"limit": "5 ms"
},
{
"path": "packages/playback/dist/main/core/cjs/index.debug.js",
"limit": "5 ms"
}
]
Loading

0 comments on commit f5794a1

Please sign in to comment.