Skip to content

Newspaper Archive : Thankyou Card can be displayed direct via url #8441

Newspaper Archive : Thankyou Card can be displayed direct via url

Newspaper Archive : Thankyou Card can be displayed direct via url #8441

name: Compressed Size
on: [pull_request]
permissions:
pull-requests: write
jobs:
compressed_size:
if: ${{ github.actor != 'gu-scala-steward-public-repos[bot]' }}
name: Compressed Size
defaults:
run:
working-directory: support-frontend
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
# Cache npm dependencies using https://github.com/bahmutov/npm-install
- name: Cache dependencies
uses: bahmutov/npm-install@v1
with:
working-directory: support-frontend
- name: Install
run: yarn
- name: Check compressed size of JS
uses: preactjs/compressed-size-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
cwd: "./support-frontend"
pattern: "./public/compiled-assets/{javascripts,webpack}/**/*.js"
build-script: "build-github-action"
minimum-change-threshold: 500