-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fceb369
Showing
9 changed files
with
43,295 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: SizeCompare CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
|
||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
check-size: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: 🛎️ Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: 📦 Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
run_install: false | ||
|
||
- name: 🐧 Use Node.js v18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: v18.x | ||
cache: 'pnpm' | ||
|
||
- name: 🔍 Install dependencies | ||
run: pnpm install | ||
|
||
- name: 🔧 Build package | ||
run: pnpm build | ||
|
||
- name: 🚛 Size compare | ||
uses: ./ | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
dist/** |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Download workflow artifact GitHub Action | ||
|
||
Compare size changes of your bundle on Pull Requests. | ||
|
||
## Usage | ||
|
||
```yaml | ||
name: SizeCompare CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
size-compare: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛎️ Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# Add here your setup, installation, and build steps | ||
|
||
- name: 🚛 Size compare | ||
uses: numero33/size-branch-compare | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
dist/**.js | ||
!dist/**.js.map | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "Size Branch Compare" | ||
description: "Compare branch size of the built assets" | ||
branding: | ||
icon: bar-chart-2 | ||
color: gray-dark | ||
|
||
inputs: | ||
github-token: | ||
description: GitHub token to use for API calls | ||
required: true | ||
files: | ||
description: A glob pattern where to find bundle files compare size for | ||
runs: | ||
using: "node16" | ||
main: "dist/index.js" |
Oops, something went wrong.