chore(ci): track bundle size (#1630)
* chore(ci): track bundle size --------- Co-authored-by: pauldambra <pauldambra@users.noreply.github.com>
This commit is contained in:
8
.github/workflows/ci-cd.yml
vendored
8
.github/workflows/ci-cd.yml
vendored
@@ -34,6 +34,14 @@ jobs:
|
||||
# run: PUPPETEER_EXECUTABLE_PATH=${{ steps.setup-chrome.outputs.chrome-path }} PUPPETEER_HEADLESS=true xvfb-run --server-args="-screen 0 1920x1080x24" yarn test
|
||||
run: PUPPETEER_HEADLESS=true xvfb-run --server-args="-screen 0 1920x1080x24" yarn test
|
||||
|
||||
- name: Check bundle sizes
|
||||
uses: preactjs/compressed-size-action@v2
|
||||
with:
|
||||
install-script: "yarn install --frozen-lockfile"
|
||||
build-script: "build:all"
|
||||
compression: "none"
|
||||
pattern: "**/dist/*.{js,cjs,mjs,css}"
|
||||
|
||||
- name: Upload diff images to GitHub
|
||||
uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
|
||||
Reference in New Issue
Block a user