File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -136,3 +136,41 @@ jobs:
136136 name : playwright-other-report
137137 path : src/frontend/apps/e2e/report/
138138 retention-days : 7
139+
140+ bundle-size-check :
141+ runs-on : ubuntu-latest
142+ needs : install-dependencies
143+ if : github.event_name == 'pull_request'
144+ permissions :
145+ contents : read
146+ pull-requests : write
147+ issues : write
148+ steps :
149+ - name : Checkout repository
150+ uses : actions/checkout@v4
151+
152+ - name : Setup Node.js
153+ uses : actions/setup-node@v4
154+ with :
155+ node-version : " 22.x"
156+
157+ - name : Restore the frontend cache
158+ uses : actions/cache@v4
159+ with :
160+ path : " src/frontend/**/node_modules"
161+ key : front-node_modules-${{ hashFiles('src/frontend/**/yarn.lock') }}
162+ fail-on-cache-miss : true
163+
164+ - name : Check bundle size changes
165+ uses : preactjs/compressed-size-action@v2
166+ with :
167+ repo-token : " ${{ secrets.GITHUB_TOKEN }}"
168+ build-script : " build"
169+ pattern : " ./out/**/*.{css,js,html}"
170+ exclude : " {**/*.map,**/node_modules/**}"
171+ minimum-change-threshold : 500
172+ compression : " gzip"
173+ cwd : " ./src/frontend/apps/impress"
174+ show-total : true
175+ strip-hash : " \\ b\\ w+\\ ."
176+ omit-unchanged : true
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ and this project adheres to
88
99## [ Unreleased]
1010
11+ ### Added
12+
13+ - 👷(CI) add bundle size check job #1268
14+
1115### Changed
1216
1317- ⚡️(frontend) improve accessibility:
You can’t perform that action at this time.
0 commit comments