mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Show test issues as annotations in the GitHub Actions job summary
This commit is contained in:
@@ -13,7 +13,7 @@ edited () {
|
|||||||
|
|
||||||
dependency () {
|
dependency () {
|
||||||
if edited "$1" && ! edited "$2"; then
|
if edited "$1" && ! edited "$2"; then
|
||||||
echo "'$1' was modified, but not '$2'! $3" | xargs
|
echo >&2 "::warning '$1' was modified, but not '$2'! $3" | xargs
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ done
|
|||||||
if [[ "$failed" -eq 0 ]]; then
|
if [[ "$failed" -eq 0 ]]; then
|
||||||
echo "${bold}${green}All ${tests} tests passed!${rescolors}${resbold}"
|
echo "${bold}${green}All ${tests} tests passed!${rescolors}${resbold}"
|
||||||
else
|
else
|
||||||
echo "${bold}${red}${failed} of the tests failed!${rescolors}${resbold}"
|
echo "::warning ${bold}${red}${failed} of the RGBASM tests failed!${rescolors}${resbold}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $rc
|
exit $rc
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ rc=$((rc || $?))
|
|||||||
if [[ "$failed" -eq 0 ]]; then
|
if [[ "$failed" -eq 0 ]]; then
|
||||||
echo "${bold}${green}All ${tests} tests passed!${rescolors}${resbold}"
|
echo "${bold}${green}All ${tests} tests passed!${rescolors}${resbold}"
|
||||||
else
|
else
|
||||||
echo "${bold}${red}${failed} of the tests failed!${rescolors}${resbold}"
|
echo "::warning ${bold}${red}${failed} of the RGBFIX tests failed!${rescolors}${resbold}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $rc
|
exit $rc
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ done
|
|||||||
if [[ "$failed" -eq 0 ]]; then
|
if [[ "$failed" -eq 0 ]]; then
|
||||||
echo "${bold}${green}All ${tests} tests passed!${rescolors}${resbold}"
|
echo "${bold}${green}All ${tests} tests passed!${rescolors}${resbold}"
|
||||||
else
|
else
|
||||||
echo "${bold}${red}${failed} of the tests failed!${rescolors}${resbold}"
|
echo "::warning ${bold}${red}${failed} of the RGBGFX tests failed!${rescolors}${resbold}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $rc
|
exit $rc
|
||||||
|
|||||||
@@ -331,7 +331,7 @@ evaluateTest
|
|||||||
if [[ "$failed" -eq 0 ]]; then
|
if [[ "$failed" -eq 0 ]]; then
|
||||||
echo "${bold}${green}All ${tests} tests passed!${rescolors}${resbold}"
|
echo "${bold}${green}All ${tests} tests passed!${rescolors}${resbold}"
|
||||||
else
|
else
|
||||||
echo "${bold}${red}${failed} of the tests failed!${rescolors}${resbold}"
|
echo "::warning ${bold}${red}${failed} of the RGBLINK tests failed!${rescolors}${resbold}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $rc
|
exit $rc
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ test_downstream() { # owner repo make-target build-file build-hash
|
|||||||
make -j4 "$3" RGBDS=../../
|
make -j4 "$3" RGBDS=../../
|
||||||
hash="$(sha1sum -b "$4" | head -c 40)"
|
hash="$(sha1sum -b "$4" | head -c 40)"
|
||||||
if [ "$hash" != "$5" ]; then
|
if [ "$hash" != "$5" ]; then
|
||||||
echo >&2 'SHA-1 hash of '"$4"' did not match: '"$hash"
|
echo >&2 '::warning SHA-1 hash of '"$4"' did not match: '"$hash"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
|
|||||||
Reference in New Issue
Block a user