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
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.
Description:
The project structure is in place, and a
Makefilealready 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
.github/workflows/ci.ymlthat:mainand on PRswasm32-unknown-unknowntargetcargo fmt --check(fails on messy code)cargo clippy -- -D warnings(fails on linter warnings)cargo testMakefiletargets work as expected:make build→ builds the Stellar contract and generates.wasmfilemake test→ runscargo test(builds first if needed)make fmt→ runscargo fmt --allmake clean→ cleans build artifactsDefinition of Done
make buildlocally generates.wasmfile intarget/