-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from web3wagers/dev
Merge dev into Main
- Loading branch information
Showing
8 changed files
with
117 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Pull Request | ||
|
||
- [ ] Closes # | ||
- [ ] Added tests (if necessary) | ||
- [ ] Run tests | ||
- [ ] Run formatting | ||
- [ ] Commented the code | ||
|
||
## Changes description | ||
|
||
Describe what your changes will do and any TODOs there might be in the future related to the issue you are closing. | ||
|
||
## Current output | ||
|
||
Give evidence like screenshots of what your job looks like. | ||
|
||
## Time spent breakdown | ||
|
||
Give a breakdown on the time you used to solve the issue you are closing. | ||
|
||
## Comments | ||
|
||
Any other details you might want to share. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
tests_output=$(cd contracts && scarb run test || true) | ||
|
||
# Get summary information | ||
echo "::group::Summary" | ||
|
||
tests_passed=$(echo "$tests_output" | awk '/Tests:/ {print $2}') | ||
tests_failed=$(echo "$tests_output" | awk '/Tests:/ {print $4}') | ||
skipped_count=$(echo "$tests_output" | awk '/Tests:/ {print $6}') | ||
ignored_count=$(echo "$tests_output" | awk '/Tests:/ {print $6}') | ||
filtered_out_count=$(echo "$tests_output" | awk '/Tests:/ {print $6}') | ||
|
||
echo "Tests passed: $tests_passed" | ||
echo "Tests failed: $tests_failed" | ||
echo "Skipped: $skipped_count" | ||
echo "Ignored: $ignored_count" | ||
echo "Filtered out: $filtered_out_count" | ||
echo "::endgroup::" | ||
|
||
# Check for failed tests | ||
|
||
if [ "$tests_failed" -gt 0 ]; then | ||
failed_tests=$(echo "$tests_output" | awk '/Failures:/{flag=1;next}/^\s*$/{flag=0}flag') | ||
echo "::error::Tests failed:" | ||
echo "$failed_tests" | ||
exit 1 | ||
fi |