Add bundle size check for dependabot (#8600)

This commit is contained in:
fisker Cheung authored and GitHub committed 2020-06-19 14:43:02 +08:00
1 parent a4e5f2053d
commit 3ac8e4a4dc
2 files changed
+17

No files matched your search

+15
View File
@@ -45,6 +45,21 @@ jobs:
name: dist
path: dist
# This step calls `git reset`
# It should be the last step
# The cache step might saving the result of master branch, need investigate
- name: Check Sizes
if: >-
github.event_name == 'pull_request' &&
(
github.actor == 'dependabot' ||
contains(github.event.comment.body, '/size')
)
uses: preactjs/compressed-size-action@v2.0.1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
compression: none
lint:
name: Lint
runs-on: ubuntu-latest