Revert "Revert "Github: Add admin bundle-size PR reporter""

This commit is contained in:
Gustav Hansen 2023-02-15 21:34:52 +01:00 committed by GitHub
parent f4fcfa5f31
commit dd8d2233a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
.github/workflows/adminBundleSize.yml vendored Normal file
View 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}))"