Skip to content

Commit

Permalink
Add size-limit GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
ziir committed Aug 26, 2020
1 parent 0014f95 commit fa2539b
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 61 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "size"
on:
pull_request:
branches: [ master ]

jobs:
size:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Using Node.js 10
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install
run: npm ci
- uses: andresz1/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: install
107 changes: 48 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"size-limit": [
{
"path": "dist/js/app.*.js",
"limit": "40 KB"
"limit": "120 KB",
"gzip": false
}
],
"bundlesize": [
Expand Down Expand Up @@ -99,7 +100,7 @@
"prettier": "^1.14.2",
"prettier-plugin-html-template-literals": "^1.0.5",
"sass-loader": "^7.1.0",
"size-limit": "^4.0.1",
"size-limit": "^4.0.2",
"terser-webpack-plugin": "^1.2.3",
"webpack": "^4.29.6",
"webpack-cli": "^3.3.0",
Expand Down

0 comments on commit fa2539b

Please sign in to comment.