Skip to content

Commit

Permalink
πŸ‘·β€β™‚οΈ Edit ci (#1085)
Browse files Browse the repository at this point in the history
* πŸ‘·β€β™‚οΈ Edit ci

* Run gas-diff when changed .sol
  • Loading branch information
atarpara authored Sep 19, 2024
1 parent 0234e7d commit b14edc5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
skip: ./.git,package-lock.json,ackee-blockchain-solady-report.pdf,EIP712Mock.sol

gas-diff:
if: github.event_name == 'pull_request'
if: contains(github.event.pull_request.changed_files, '*.sol') # Run only if .sol files are changed
permissions: write-all
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -120,7 +120,7 @@ jobs:
run: forge install

- name: Generate gas diff
uses: atarpara/foundry-snapshot-diff@v0.5
uses: atarpara/foundry-snapshot-diff@v0.6
id : gas_diff

- name: Add gas diff to sticky comment
Expand All @@ -129,3 +129,4 @@ jobs:
with:
delete: ${{ !steps.gas_diff.outputs.markdown }}
message: ${{ steps.gas_diff.outputs.markdown }}

0 comments on commit b14edc5

Please sign in to comment.