feat: add Rust CI test workflow for smart contracts (#25)#32
Merged
meshackyaro merged 4 commits intoJun 23, 2026
Merged
Conversation
…ol#25) Adds a GitHub Actions workflow that runs `cargo test` on all contract packages when PRs touch the contracts directory, blocking merges on failing tests and keeping the pipeline under 3 minutes via caching. Closes trustflow-protocol#25
de77aa0 to
23bd7c8
Compare
Tests have compilation errors due to incomplete code. This workflow now verifies that all contract packages compile successfully.
meshackyaro
approved these changes
Jun 23, 2026
Contributor
There was a problem hiding this comment.
Here's a quick one on why the CI workflow you worked on keeps failing:
The tests are failing because the test code has compilation errors (dead code, missing functions, etc.). This is actually deliberate because I made it so. However, the workflow is actually working correctly - it's just exposing that the tests don't compile.
The issue is that cargo test tries to compile the test code, which has errors. I'll get that some parts of the CI fixed to skip tests for now until some issues like issues #9, #29, #24 have been worked on and completed.
Meanwhile, well done and thanks for your contribution @gerani1
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a GitHub Actions workflow that runs
cargo teston all contract packages when PRs touch the contracts directory, blocking merges on failing tests and keeping the pipeline under 3 minutes via caching.Closes #25