Skip to content

Commit

Permalink
👷 remove CI gas diff
Browse files Browse the repository at this point in the history
  • Loading branch information
qd-qd committed Dec 19, 2024
1 parent 94dc438 commit bfc3098
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,5 @@ jobs:
echo $(($EPOCHSECONDS - $EPOCHSECONDS % 604800))
)" >> $GITHUB_ENV
# TODO: Rework the job to correctly print the output of the test command
- name: Run tests with gas reporting
run: forge test --gas-report > gasreport.ansi

- name: Compare gas reports
uses: Rubilmax/[email protected]
with:
summaryQuantile: 0.8 # only display the 20% most significant gas diffs in the summary
sortCriteria: avg,max # sort diff rows by criteria
sortOrders: desc,asc # and directions
id: gas_diff

# Comment on the PR with the gas diff
- name: Add gas diff to sticky comment
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
uses: marocchino/sticky-pull-request-comment@v2
with:
# delete the comment in case changes no longer impact gas costs
delete: ${{ !steps.gas_diff.outputs.markdown }}
message: ${{ steps.gas_diff.outputs.markdown }}
- name: Run tests
run: forge test

0 comments on commit bfc3098

Please sign in to comment.