@@ -146,6 +146,9 @@ jobs:
146
146
run : |
147
147
npm install --global pnpm
148
148
149
+ # Install Steel CLI
150
+ cargo install --quiet steel-cli
151
+
149
152
# Create the build and test function
150
153
cat << 'EOF' > build_and_test.sh
151
154
function build_and_test() {
@@ -154,8 +157,9 @@ jobs:
154
157
echo "Building and Testing $project with Solana $solana_version"
155
158
cd "$project" || return 1
156
159
157
- # Install dependencies
160
+ # Check if this is a pnpm project or Steel CLI project
158
161
if [ -f "package.json" ]; then
162
+ # Use pnpm for projects with package.json
159
163
if ! pnpm install --frozen-lockfile; then
160
164
echo "::error::pnpm install failed for $project"
161
165
echo "$project: pnpm install failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt
@@ -172,20 +176,14 @@ jobs:
172
176
fi
173
177
174
178
# Test
175
- if ! pnpm build-and- test; then
179
+ if ! pnpm test; then
176
180
echo "::error::tests failed for $project"
177
181
echo "$project: tests failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt
178
182
cd - > /dev/null
179
183
return 1
180
184
fi
181
185
else
182
- # Use Steel CLI
183
- if ! cargo install --quiet steel-cli; then
184
- echo "::error::steel-cli installation failed for $project"
185
- echo "$project: steel-cli installation failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt
186
- cd - > /dev/null
187
- return 1
188
- fi
186
+ # Use Steel CLI for pure Steel projects
189
187
190
188
# Build
191
189
if ! steel build; then
0 commit comments