Skip to content

chore: add generate_abi_metadata to CI on contract change #117

Description

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

  1. Fork the repo and create a branch
    git checkout -b chore/abi-metadata-ci-automation
    
  2. Implement changes
  3. 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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions