Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Add a GitHub action that comments on PRs with the change in library bundle size #2

Add a GitHub action that comments on PRs with the change in library bundle size

Add a GitHub action that comments on PRs with the change in library bundle size #2

name: Compare Bundle Size
on:
pull_request:
env:
# Among other things, opts out of Turborepo telemetry
# See https://consoledonottrack.com/
DO_NOT_TRACK: '1'
# Some tasks slow down considerably on GitHub Actions runners when concurrency is high
TURBO_CONCURRENCY: 1
# Enables Turborepo Remote Caching.
TURBO_REMOTE_CACHE_SIGNATURE_KEY: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
jobs:
compare-bundle-size:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
uses: ./.github/workflows/actions/install-dependencies
with:
version: current
- uses: preactjs/compressed-size-action@v2
with:
build-script: 'pnpm turbo compile:js --filter=@solana/web3.js'
pattern: ./packages/library/dist/index.*.mjs