mirror of
https://github.com/strapi/strapi.git
synced 2025-09-18 21:08:54 +00:00
Chore: Improve GH bundle-size reporter
This commit is contained in:
parent
4a732d8a9b
commit
36da508eba
14
.github/workflows/adminBundleSize.yml
vendored
14
.github/workflows/adminBundleSize.yml
vendored
@ -4,14 +4,23 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '**/admin/src/**.js'
|
- '**/admin/src/**.js'
|
||||||
|
- '**/ee/admin/**.js'
|
||||||
- '**/helper-plugin/lib/src/**.js'
|
- '**/helper-plugin/lib/src/**.js'
|
||||||
- '**/translations/**.json'
|
- '**/translations/**.json'
|
||||||
|
|
||||||
|
# Might be too broad, but it runs the action even if a
|
||||||
|
# package.json wasn't changed, e.g. for non-pinned dependencies
|
||||||
- 'yarn.lock'
|
- 'yarn.lock'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
admin_size:
|
admin_size:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Allows the action to comment on PRs
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -24,3 +33,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
pattern: '**/build/**/*.{js,css,html,svg}'
|
pattern: '**/build/**/*.{js,css,html,svg}'
|
||||||
strip-hash: "\\.(?:(\\w{8})\\.chunk)|(?:\\.(\\w{8}))"
|
strip-hash: "\\.(?:(\\w{8})\\.chunk)|(?:\\.(\\w{8}))"
|
||||||
|
minimum-change-threshold: 10
|
||||||
|
|
||||||
|
# FIXME: exclude unnamed webpack chunks - remove once webpack
|
||||||
|
# does not create them anymore
|
||||||
|
exclude: '{**/build/**/+([0-9]{,4})*,**/node_modules/**}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user