Description
Set up a GitHub Actions workflow that runs cargo test and stellar contract build on every push and pull request, so build/test breakage is caught before merge instead of relying on manual verification.
Requirements and Context
- Right now all build/test verification is manual - this does not scale as contributors start opening PRs
- Must work on the wasm32v1-none build target
- soroban-sdk is pinned to 27.0.3 (not 27.0.5 - see Cargo.toml)
- crate-type must be ["rlib"] for cargo test to pass and ["cdylib", "rlib"] for stellar contract build to succeed
- CI runs on Linux, so Windows/MinGW-specific build quirks documented in CONTRIBUTING.md do not apply here
Suggested Execution
Branch name: chore/ci-pipeline
Files to touch:
- .github/workflows/ci.yml (new)
- README.md (add CI status badge)
Example commit message: chore(ci): add automated build and test verification pipeline
Test and Commit
Guidelines
Complexity
Medium - 150 points
Description
Set up a GitHub Actions workflow that runs
cargo testandstellar contract buildon every push and pull request, so build/test breakage is caught before merge instead of relying on manual verification.Requirements and Context
Suggested Execution
Branch name: chore/ci-pipeline
Files to touch:
Example commit message: chore(ci): add automated build and test verification pipeline
Test and Commit
Guidelines
Complexity
Medium - 150 points