Skip to content

Commit a9121d4

Browse files
committed
add Rust unit tests
1 parent d81d313 commit a9121d4

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/solana-asm.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,17 @@ jobs:
135135
return 1
136136
fi
137137
138+
# Run Rust unit tests
139+
if [ -d "program" ]; then
140+
echo "Running Rust unit tests for $project"
141+
if ! cargo test --manifest-path=./program/Cargo.toml; then
142+
echo "::error::Rust unit tests failed for $project"
143+
echo "$project: Rust unit tests failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt
144+
cd - > /dev/null
145+
return 1
146+
fi
147+
fi
148+
138149
echo "Build and tests succeeded for $project with $solana_version version."
139150
cd - > /dev/null
140151
return 0

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)