Run size check on every PR (#12583)
This commit is contained in:
1 parent
687ca4b95d
commit
719f264ebc
2 files changed
+26
-10
No files matched your search
@@ -0,0 +1,26 @@
|
||||
name: Check Sizes
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
check-sizes:
|
||||
name: Check Sizes
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: "yarn"
|
||||
|
||||
# This step calls `git reset`
|
||||
# It should be the last step
|
||||
- name: Check Sizes
|
||||
uses: preactjs/compressed-size-action@2.5.0
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
pattern: "./dist/**/*"
|
||||
compression: none
|
||||
@@ -32,16 +32,6 @@ jobs:
|
||||
name: dist
|
||||
path: dist
|
||||
|
||||
# This step calls `git reset`
|
||||
# It should be the last step
|
||||
- name: Check Sizes
|
||||
if: ${{ github.event_name == 'pull_request' && startsWith(github.head_ref, 'dependabot/npm_and_yarn/') }}
|
||||
uses: preactjs/compressed-size-action@2.5.0
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
pattern: "./dist/**/*"
|
||||
compression: none
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in new issue
Block a user