ci: add bundle size report for PRs (#616)

This commit is contained in:
pataar 2022-02-08 11:45:37 +01:00 committed by GitHub
parent 20240fc442
commit 02ec026ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
.github/workflows/build_size_report.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Build Size Report
on: [ pull_request ]
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: preactjs/compressed-size-action@v2
with:
pattern: "./dist/**/*.{js,css,html,json}"
exclude: "{./dist/manifest.json,./dist/build.zip,**/*.map,**/node_modules/**}"