preactjs / compressed-size-action

GitHub Action that adds compressed size changes to your PRs.
https://github.com/marketplace/actions/compressed-size-action
MIT License
602 stars 84 forks source link

Support push events #35

Closed andrewiggins closed 3 years ago

andrewiggins commented 4 years ago

Add supports for push events. It won't post a comment but will put the size differences in the logs.

In the future this could be used to generate a size-diff artifact to compare against the current sizes to avoid having to rebuild the base sha.

One current limitation is that the initial push to a branch doesn't have a before sha, but I think that's fine for now. I don't have too much time to look further into that so figured I at least share what I have so far.

github-actions[bot] commented 4 years ago

Size Change: +119 B (0%)

Total Size: 75.7 kB

Filename Size Change
index.js 75.7 kB +119 B (0%)

compressed-size-action