mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00

chore: commit yarn release chore: don't use -s fix: eslint deps https://eslint.org/docs/latest/extend/shareable-configs#publishing-a-shareable-config chore: fix eslint chore: remove -s fix: lint chore: yarn 3 amends chore: dont use npm run all chore: fix securitylockfile action chore: update lockfile post rebase Revert "Delete index.js" This reverts commit e6009ec7cf13fb9edd93a7bf820b0f50af5dcb54. Delete index.js chore: remove validate-https because how yarn3 works chore: remove validate-https chore: use same time of cache everywhere
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Admin bundle-size
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**/admin/src/**.js'
|
|
- '**/ee/admin/**.js'
|
|
- '**/helper-plugin/lib/src/**.js'
|
|
- '**/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'
|
|
|
|
jobs:
|
|
admin_size:
|
|
runs-on: ubuntu-latest
|
|
|
|
# Allows the action to comment on PRs
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
- uses: preactjs/compressed-size-action@v2
|
|
with:
|
|
pattern: '**/build/**/*.{js,css,html,svg}'
|
|
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/**}'
|