feat: add front rendering app #15673
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DCR Compressed Size | |
permissions: | |
contents: read | |
pull-requests: write | |
on: | |
pull_request: | |
paths-ignore: | |
- "apps-rendering/**" | |
- "dotcom-rendering/docs/**" | |
jobs: | |
compressed_size: | |
name: DCR Compressed Size | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- uses: preactjs/compressed-size-action@v2 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
build-script: build:dcr | |
# https://github.com/preactjs/compressed-size-action#increasing-the-required-threshold | |
minimum-change-threshold: 100 | |
# https://github.com/preactjs/compressed-size-action#dealing-with-hashed-filenames | |
# The default hash digest is set to 20 chars in Webpack | |
strip-hash: "\\.(\\w{20})\\.js$" | |
# reporting on “legacy” and “variant” bundles muddies the water | |
# https://github.com/preactjs/compressed-size-action#customizing-the-list-of-files | |
pattern: "dotcom-rendering/dist/*.modern.*.js" |