-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
# Github Action: foundry-gas-diff | ||
|
||
Foundry gas diff is a Github Action that compares gas usage between two Solidity contracts. | ||
The action is useful to compare gas usage from pull request to pullrequest so you can stop gas regressions before they are merged. | ||
Foundry gas diff is a Github Action that compares gas usage between two Solidity contracts, assuming snapshots in a directory called `snapshots`. | ||
The action is useful to compare gas usage from pull request to pull request so you can stop gas regressions before they are merged. | ||
|
||
In it's current version foundry-gas-diff only performs the diffing, and leaves the reporting to the user. | ||
|
||
We might consider changing this in a future version. | ||
|
||
## Usage | ||
|
||
```yaml | ||
- uses: bgd-labs/action-foundry-gas-diff@main | ||
with: | ||
# The path to the first contract to compare | ||
ROOT_REPORT_PATH: 'path/to/gas/on/main' | ||
# The path to the second contract to compare | ||
REPORT_PATH: 'path/to/gas' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters