mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
GH: Add bundle-size reporter
This commit is contained in:
parent
da4d13562e
commit
fa89f99b7b
26
.github/workflows/adminBundleSize.yml
vendored
Normal file
26
.github/workflows/adminBundleSize.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: Admin bundle-size
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '**/admin/src/**.js'
|
||||
- '**/helper-plugin/lib/src/**.js'
|
||||
- '**/translations/**.json'
|
||||
- 'yarn.lock'
|
||||
|
||||
jobs:
|
||||
admin_size:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: yarn
|
||||
|
||||
- uses: preactjs/compressed-size-action@v2
|
||||
with:
|
||||
pattern: '**/build/**/*.{js,css,html,svg}'
|
||||
strip-hash: "\\.(?:(\\w{8})\\.chunk)|(?:\\.(\\w{8}))"
|
Loading…
x
Reference in New Issue
Block a user