Skip to content

Commit

Permalink
feat: add gas diff to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fedealconada committed Jan 5, 2024
1 parent 611a83f commit ebec3f5
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/forge-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,22 @@ jobs:
# uses: terencetcf/github-actions-lcov-minimum-coverage-checker@v1
# with:
# coverage-file: lcov.info
# minimum-coverage: 90
# minimum-coverage: 90

snapshot:
needs: coverage

name: Snapshot
runs-on: ubuntu-latest

steps:
- name: Check gas snapshots
run: forge snapshot --diff

- name: Commit changes
if: ${{ github.ref == 'refs/heads/dev' }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[ci] gas snapshot'
branch: ${{ github.head_ref }}
file_pattern: gas-snapshots/*

0 comments on commit ebec3f5

Please sign in to comment.