/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
.github/workflows/bundle-size.yml
77 строк
3 KB
Adrian Moldovan
CI: Add job timeouts to E2E, static checks, bundle size, and create block (#80801)
04 авг 2026, 04:17
Не верифицирован
04 авг 2026, 04:17
27f57c9
Код
Авторство
О чём код?
name: Compressed Size on: pull_request: paths: # Any change to a CSS, Sass, or JavaScript/TypeScript file should run checks. - '**.js' - '**.ts' - '**.tsx' - '**.cjs' - '**.mjs' - '**.css' - '**.scss' # Changes to any NPM related files could affect the outcome. - '**package*.json' # These files configures ESLint. Changes could affect the outcome. - '**.eslint*' # These files configures JSHint. Changes could affect the outcome. - '**.jshint*' # These files configures Prettier. Changes could affect the outcome. - '**.prettier*' # These files configures stylelint. Changes could affect the outcome. - '**.stylelint*' # These files configures TypeScript. Changes could affect the outcome. - '**.tsconfig*' # This file configures Webpack. Changes could affect the outcome. - 'webpack.config.js' # Changes to this workflow file should always verify the changes are successful. - '.github/workflows/bundle-size.yml' - tools/build-scripts/packages # Cancels all previous workflow runs for pull requests that have not completed. concurrency: # The concurrency group contains the workflow name and the branch name for pull requests # or the commit hash for any other events. group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} cancel-in-progress: true # Disable permissions for all available scopes by default. # Any needed permissions should be configured at the job level. permissions: {} jobs: build: name: Check runs-on: 'ubuntu-24.04' permissions: contents: read pull-requests: write timeout-minutes: 15 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 1 show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} persist-credentials: false - name: Use desired version of Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version-file: '.nvmrc' check-latest: true cache: npm - name: Pin npm version for consistency run: | npm install --global npm@10 npm --version - uses: preactjs/compressed-size-action@f322c295dde06a1cb7ccaef105732dd8a726d1d9 # v2.10.0 with: omit-unchanged: true repo-token: '${{ secrets.GITHUB_TOKEN }}' pattern: '{build/scripts/**/*.min.js,build/styles/**/*.css,build/modules/**/*.min.js}' clean-script: 'distclean' build-script: 'build -- --skip-types'