forked from nanocurrency/nano-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance code sanitizers workflow (fixed & resubmitted) (nanocurrency#…
- Loading branch information
1 parent
d29032a
commit 6f916f0
Showing
3 changed files
with
89 additions
and
66 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
set -uo pipefail | ||
|
||
issue_reported=false | ||
|
||
# Check for sanitizer reports using glob | ||
shopt -s nullglob | ||
reports=(./sanitizer_report*) | ||
|
||
if [[ ${#reports[@]} -gt 0 ]]; then | ||
for report in "${reports[@]}"; do | ||
report_name=$(basename "${report}") | ||
echo "::group::Report: $report_name" | ||
|
||
cat "${report}" | ||
|
||
echo "::endgroup::" | ||
|
||
issue_reported=true | ||
done | ||
else | ||
echo "::notice::No report has been generated." | ||
fi | ||
|
||
echo "issue_reported=${issue_reported}" >> $GITHUB_OUTPUT | ||
|
||
if $issue_reported; then | ||
echo "::error::Issues were reported in the sanitizer report." | ||
exit 1 | ||
else | ||
echo "::notice::No issues found in the sanitizer reports." | ||
exit 0 | ||
fi |