Skip to content

Commit

Permalink
Merge pull request #280 from abhirajprasad/feat-fixed-#132
Browse files Browse the repository at this point in the history
fix-132 explicit scarb compilation
  • Loading branch information
adrianvrj authored Nov 29, 2024
2 parents f8b81b5 + 079ecc4 commit de9f4fc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/bin/bash

set -e
# First, attempt to compile everything
echo "::group::Compilation"
if ! (cd contracts && scarb build); then
echo "::error::Compilation failed"
exit 1
fi
echo "::endgroup::"

tests_output=$(cd contracts && scarb run test || true)

Expand All @@ -27,4 +34,4 @@ if [ "$tests_failed" -gt 0 ]; then
echo "::error::Tests failed:"
echo "$failed_tests"
exit 1
fi
fi

0 comments on commit de9f4fc

Please sign in to comment.