Skip to content

Add Soroban contract CI with cargo test and cargo clippy #413

@ritik4ever

Description

@ritik4ever

Problem

Contract changes are never automatically validated in CI. A broken snapshot test can be merged without being caught.

Scope

Add .github/workflows/contracts.yml running cargo clippy and cargo test.

Acceptance criteria

  • cargo clippy -- -D warnings fails on any warning
  • cargo test runs all unit and snapshot tests
  • Cargo cache used to speed up builds
  • WASM binary size reported in workflow summary
  • Required status check for contract file changes

Complexity: Easy · 100 points

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programcontractsSoroban Rust contractdevopsCI/CD, Docker, infratesting

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions