Skip to content

# Configure CI Pipeline & Verify Local CLI Tooling #1

@Devsol-01

Description

@Devsol-01

Description:
The project structure is in place, and a Makefile already exists for local development. However, we currently lack automated testing on GitHub. We want to configure a CI pipeline using GitHub Actions to ensure code quality, and verify that the existing Makefile works for contributors.

Tasks

  • Create .github/workflows/ci.yml that:
    • Triggers on push to main and on PRs
    • Installs Rust (stable) + wasm32-unknown-unknown target
    • Runs cargo fmt --check (fails on messy code)
    • Runs cargo clippy -- -D warnings (fails on linter warnings)
    • Runs cargo test
  • Verify the existing Makefile targets work as expected:
    • make build → builds the Stellar contract and generates .wasm file
    • make test → runs cargo test (builds first if needed)
    • make fmt → runs cargo fmt --all
    • make clean → cleans build artifacts

Note: The Makefile is already present. Contributors should check that it works locally and update documentation if needed.

Definition of Done

  • PR is opened that adds the GitHub Actions workflow
  • CI pipeline runs successfully (green) on PR
  • Running make build locally generates .wasm file in target/
  • All Makefile targets work as documented

This ensures code quality is automatically enforced and contributors can easily run common tasks without remembering complex CLI commands.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions