From 02ec026ed7b59172f1cf8cc76e76359bb68d1ac6 Mon Sep 17 00:00:00 2001 From: pataar Date: Tue, 8 Feb 2022 11:45:37 +0100 Subject: [PATCH] ci: add bundle size report for PRs (#616) --- .github/workflows/build_size_report.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/build_size_report.yml diff --git a/.github/workflows/build_size_report.yml b/.github/workflows/build_size_report.yml new file mode 100644 index 00000000..919f99be --- /dev/null +++ b/.github/workflows/build_size_report.yml @@ -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/**}" \ No newline at end of file