From d05d703dadc5e1060a3306cdec68d0a074dd462a Mon Sep 17 00:00:00 2001 From: Jainam Chirag Shah Date: Mon, 16 Nov 2020 20:02:04 +0530 Subject: [PATCH] chore(v2): add build size bot workflow Github CI workflow (#3744) --- .github/workflows/build-size.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build-size.yml diff --git a/.github/workflows/build-size.yml b/.github/workflows/build-size.yml new file mode 100644 index 0000000000..84e2069ebd --- /dev/null +++ b/.github/workflows/build-size.yml @@ -0,0 +1,24 @@ +name: Build Size + +on: + # Trigger the workflow on push or pull request, + # but only for the master branch + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: preactjs/compressed-size-action@v2 + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}' + pattern: '{website/build/main*js,website/build/styles*css,website/build/index.html,website/build/blog/**/introducing-docusaurus/*,website/build/docs/introduction/index.html}' + strip-hash: '\.([^;]\w{7})\.' + minimum-change-threshold: 100