ci: add Gravity to CI #459
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi! I'm @oscard0m, and I work at Mainmatter.
We really appreciate the great work you're doing at
mswjs/mswjs.io! We thought Gravity could be useful to the project.What is Gravity?
Gravity is a free tool that helps maintainers stay on top of asset size increases as part of their CI pipeline. Gravity catches potentially unintended or disproportionate growth of assets/bundle sizes that result out of code changes in a PR before they hit production, e.g. added dependencies that grow the bundle size disproportionally. Without Gravity, it's hard for maintainers to even be aware of these changes, and bundle/assets sizes often just keep growing unnoticed.
Here's a quick video showing Gravity in action:
https://youtu.be/2vD_geF_Ask
You can read a more detailed explanation in our
blog post.
We also prepared an example PR with Gravity set up on a fork of
mswjs/mswjs.io: mainmatter#1 and a couple of PR examples once this is set up: mainmatter#2 and mainmatter#3 where Gravity catches a bundle size increase:Last steps
This PR introduces Gravity to the project, but it is expected the maintainers
take some extra actions to connect all the dots: