-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
EskiMojo14/size-limit-action
during CI
- Loading branch information
1 parent
7e497f0
commit 8f3d109
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
name: Bundle Size | ||
name: size | ||
|
||
on: [pull_request] | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
build: | ||
size: | ||
name: Check compressed size | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
CI_JOB_NUMBER: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: EskiMojo14/size-limit-action@v2 | ||
with: | ||
fetch-depth: 1 | ||
- uses: preactjs/compressed-size-action@v2 | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' | ||
directory: . | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
build_script: build | ||
package_manager: yarn | ||
size_margin: non-zero |