Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
archive

GitHub Action

compressed-size-action

v1

compressed-size-action

archive

compressed-size-action

Get compressed size differences for every PR

Installation

Copy and paste the following snippet into your .yml file.

              

- name: compressed-size-action

uses: preactjs/compressed-size-action@v1

Learn more about this action in preactjs/compressed-size-action

Choose a version

compressed-size-action

A github action that reports changes in compressed file sizes on your PRs.

  • Automatically uses yarn or npm ci when lockfiles are present
  • Builds your PR, then builds the target and compares between the two
  • Doesn't upload anything or rely on centralized storage

Usage:

Add a workflow (.github/workflows/main.yml):

name: Compressed Size

on: [pull_request]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2-beta
      with:
        fetch-depth: 1
    - uses: preactjs/compressed-size-action@v1
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"