2021-07-03 00:53:42 +02:00
|
|
|
name: Compressed Size
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-03-18 03:00:14 +01:00
|
|
|
- uses: actions/checkout@v4
|
2024-03-23 18:45:43 +01:00
|
|
|
- run: corepack enable
|
2024-03-18 03:00:14 +01:00
|
|
|
- uses: actions/setup-node@v4
|
2021-07-03 00:53:42 +02:00
|
|
|
with:
|
2023-11-11 18:06:31 +01:00
|
|
|
node-version: '20'
|
2024-03-23 18:45:43 +01:00
|
|
|
cache: 'pnpm'
|
|
|
|
- run: pnpm i --frozen-lockfile
|
2021-07-03 00:53:42 +02:00
|
|
|
- uses: preactjs/compressed-size-action@v2
|
|
|
|
with:
|
|
|
|
build-script: benchmark:bundle
|
|
|
|
pattern: "./bundle.js"
|
|
|
|
compression: "none"
|