Skip to content

Commit 3e5596f

Browse files
committed
move run rust unit tests
1 parent 3185dce commit 3e5596f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/solana-native.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,15 @@ jobs:
135135
return 1
136136
fi
137137
138-
# Run Rust unit tests
138+
# Test
139+
if ! pnpm build-and-test; then
140+
echo "::error::tests failed for $project"
141+
echo "$project: tests failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt
142+
cd - > /dev/null
143+
return 1
144+
fi
145+
146+
# Run Rust unit tests
139147
if [ -d "program" ]; then
140148
echo "Running Rust unit tests for $project"
141149
if ! cargo test --manifest-path=./program/Cargo.toml; then
@@ -146,14 +154,6 @@ jobs:
146154
fi
147155
fi
148156
149-
# Test
150-
if ! pnpm build-and-test; then
151-
echo "::error::tests failed for $project"
152-
echo "$project: tests failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt
153-
cd - > /dev/null
154-
return 1
155-
fi
156-
157157
echo "Build and tests succeeded for $project with $solana_version version."
158158
cd - > /dev/null
159159
return 0

0 commit comments

Comments
 (0)