Description
Add a CI workflow step that automatically runs scripts/generate_abi_metadata.sh whenever files under contracts/ are changed. This ensures that ABI snapshots in abis/ are always regenerated and committed as part of any PR that modifies contract source, preventing stale metadata from reaching the main branch.
Requirements and context
- Trigger the CI step on pull requests where any file under contracts/ is modified
- Run scripts/generate_abi_metadata.sh as part of the workflow
- Fail the CI job if the resulting abis/ diff is non-empty (snapshots not committed)
- Optionally auto-commit regenerated snapshots back to the PR branch
- Follow existing project conventions
Suggested execution
- Fork the repo and create a branch
git checkout -b chore/abi-metadata-ci-automation
- Implement changes
- Test and commit
Example commit message
chore: auto-run generate_abi_metadata.sh in CI on contracts/ change
Guidelines
- Assignment required before starting
- PR description must include:
Closes #[issue_id]
- Keep PR description professional and detailed
Description
Add a CI workflow step that automatically runs scripts/generate_abi_metadata.sh whenever files under contracts/ are changed. This ensures that ABI snapshots in abis/ are always regenerated and committed as part of any PR that modifies contract source, preventing stale metadata from reaching the main branch.
Requirements and context
Suggested execution
Example commit message
chore: auto-run generate_abi_metadata.sh in CI on contracts/ changeGuidelines
Closes #[issue_id]