Skip to content

Commit

Permalink
Merge pull request #1243 from mydea/compare-asset-size
Browse files Browse the repository at this point in the history
Compare asset sizes on pull requests
  • Loading branch information
alubbe committed May 26, 2020
2 parents a2be5c9 + 114715b commit 43ee02a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/asset-size.yml
@@ -0,0 +1,18 @@
name: Asset size

on: [pull_request]

jobs:
compare:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: chrysanthos/simple-asset-size-reporter@1.0.2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
files: '["dist/*.js"]'
with-same: "false"
build-assets: "npm run install-build"
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -51,6 +51,7 @@
"benchmark": "node --expose-gc benchmark",
"benchmark:debug": "node --expose-gc --inspect-brk --trace-deopt benchmark",
"build": "grunt build",
"install-build": "npm install && grunt build",
"preversion": "npm run clean && npm run build && npm run test:version",
"postversion": "git push --no-verify && git push --tags --no-verify"
},
Expand Down

0 comments on commit 43ee02a

Please sign in to comment.