Labels: good-first-issue, ci-cd, gas-optimization, gasguard
Difficulty: Easy
Module: .github/workflows/
🧠 Concept
Set up a GitHub Actions workflow that automatically compares gas snapshots generated by forge snapshot on pull requests against the baseline branch.
⚠️ Problem
Developers can introduce subtle gas regressions during refactoring without noticing unless gas diffs are surfaced directly in pull request reviews.
📁 Implementation Scope
.github/workflows/gas-diff.yml
scripts/compare-gas-snapshots.sh
🛠️ Requirements
- Run
forge snapshot --check on pull request triggers.
- Generate a markdown table highlighting positive and negative gas deltas per test case.
- Post the summary table directly as a pull request comment.
🎯 Acceptance Criteria
Labels:
good-first-issue,ci-cd,gas-optimization,gasguardDifficulty: Easy
Module:
.github/workflows/🧠 Concept
Set up a GitHub Actions workflow that automatically compares gas snapshots generated by
forge snapshoton pull requests against the baseline branch.Developers can introduce subtle gas regressions during refactoring without noticing unless gas diffs are surfaced directly in pull request reviews.
📁 Implementation Scope
.github/workflows/gas-diff.ymlscripts/compare-gas-snapshots.sh🛠️ Requirements
forge snapshot --checkon pull request triggers.🎯 Acceptance Criteria