-
Notifications
You must be signed in to change notification settings - Fork 32
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
1 parent
bb1cd07
commit 129cde2
Showing
1 changed file
with
2 additions
and
7 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 |
---|---|---|
|
@@ -264,15 +264,10 @@ jobs: | |
with: | ||
version: nightly | ||
|
||
# TODO: consider defining a package-specific script for this | ||
- name: Run tests and generate gas report | ||
working-directory: './packages/${{matrix.package}}' | ||
# Excluding tests with reverts to get accurate average gas cost estimates | ||
run: forge test --nmt "(fail|revert)" --gas-report > "../../gas-report-${{ matrix.package }}.ansi" | ||
env: | ||
# make fuzzing semi-deterministic to avoid noisy gas cost estimation | ||
# due to non-deterministic fuzzing (but still use pseudo-random fuzzing seeds) | ||
FOUNDRY_FUZZ_SEED: 0x${{ github.event.pull_request.base.sha || github.sha }} | ||
# Run separate set of tests (no fuzzing) to get accurate average gas cost estimates | ||
run: forge test --mc GasBenchmark --gas-report > "../../gas-report-${{ matrix.package }}.ansi" | ||
|
||
- name: Compare gas reports | ||
uses: Rubilmax/[email protected] | ||
|