Skip to content
Myr

ci: compare bundle size (#3661)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* ci: compare bundle size * chore: change name of task * for SDGs * Revert "for SDGs" This reverts commit 7861d1a5fe712149a6a5825499756af697efe3d1. * add gitignore * update * fix

authored by EdamAmex · committed by GitHub · parent a15bec3 · Browse files · 4 files+59 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+59 added−0 removed

  • other:+59 added−0 removed

4 files+59 added−0 removed

modified:.github/workflows/ci.yml+43 added
180 unmodified lines
181 name: coverage-lambda-edge182 path: coverage/183184 perf-measures-type-check-on-pr:185 name: 'Type Check on PR'186 runs-on: ubuntu-latest187 if: github.event_name == 'pull_request'188 steps:189 - uses: actions/checkout@v4
19 unmodified lines
209 - run: echo "$COMPARISON"210 name: display comparison211212 perf-measures-type-check-on-main:213 name: 'Type Check on Main'214 runs-on: ubuntu-latest215 if: github.ref == 'refs/heads/main'216 steps:217 - uses: actions/checkout@v4
6 unmodified lines
224 - uses: actions/cache/save@v4225 with:226 path: perf-measures/type-check/previous-result.txt227 key: type-check-perf-previous-result-${{ github.sha }}228229 perf-measures-bundle-check-on-pr:230 name: 'Bundle Check on PR'231 runs-on: ubuntu-latest232 if: github.event_name == 'pull_request'233 steps:234 - uses: actions/checkout@v4235 - uses: oven-sh/setup-bun@v2236 - run: bun install237 - run: bun run build238 - run: bunx esbuild --minify --bundle dist/index.js --format=esm --outfile=perf-measures/bundle-check/generated/after.js239 - uses: actions/cache/restore@v4240 with:241 path: perf-measures/bundle-check/generated/before.js242 restore-keys: |243 perf-measures-bundle-check-previous-file-244 key: perf-measures-bundle-check-previous-file-245 - run: |246 {247 echo 'COMPARISON<<EOF'248 bun scripts/process-results.ts | column -s '|' -t249 echo 'EOF'250 } >> "$GITHUB_ENV"251 working-directory: perf-measures/bundle-check252 - run: echo "$COMPARISON"253 name: display comparison254255 perf-measures-bundle-check-on-main:256 name: 'Bundle Check on Main'257 runs-on: ubuntu-latest258 if: github.ref == 'refs/heads/main'259 steps:260 - uses: actions/checkout@v4261 - uses: oven-sh/setup-bun@v2262 - run: bun install263 - run: bun run build264 - run: bunx esbuild --minify --bundle dist/index.js --format=esm --outfile=perf-measures/bundle-check/generated/before.js265 - uses: actions/cache/save@v4266 with:267 path: perf-measures/bundle-check/generated/before.js268 key: perf-measures-bundle-check-previous-file-${{ github.sha }}
added:perf-measures/bundle-check/generated/.gitkeep
added:perf-measures/bundle-check/scripts/process-results.ts+14 added
added:perf-measures/bundle-check/.gitignore+2 added
1generated2!generated/.gitkeep