@@ -146,6 +146,9 @@ jobs:
146146 run : |
147147 npm install --global pnpm
148148
149+ # Install Steel CLI
150+ cargo install --quiet steel-cli
151+
149152 # Create the build and test function
150153 cat << 'EOF' > build_and_test.sh
151154 function build_and_test() {
@@ -154,8 +157,9 @@ jobs:
154157 echo "Building and Testing $project with Solana $solana_version"
155158 cd "$project" || return 1
156159
157- # Install dependencies
160+ # Check if this is a pnpm project or Steel CLI project
158161 if [ -f "package.json" ]; then
162+ # Use pnpm for projects with package.json
159163 if ! pnpm install --frozen-lockfile; then
160164 echo "::error::pnpm install failed for $project"
161165 echo "$project: pnpm install failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt
@@ -172,20 +176,14 @@ jobs:
172176 fi
173177
174178 # Test
175- if ! pnpm build-and- test; then
179+ if ! pnpm test; then
176180 echo "::error::tests failed for $project"
177181 echo "$project: tests failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt
178182 cd - > /dev/null
179183 return 1
180184 fi
181185 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
189187
190188 # Build
191189 if ! steel build; then
0 commit comments