-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup GitHub Actions for build and tests #238
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really only nitpicks, awesome work! Thanks for taking care! ❤️
set -eu -o pipefail | ||
|
||
if [ -z "${1:-}" ] || [ "${1:-}" == "--help" ] || [ "${1:-}" == "help" ]; then | ||
echo "Usage: $0 setup" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>&2
maybe in lines 11-14?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usage output on stderr is a bit meh IMO, but see below
echo " then: $0 run" | ||
echo " then: $0 test" | ||
echo "WARNING: $0 is potentially dangerous and may destroy the host system and/or any data." | ||
exit 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we maybe exit 1 then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've split the "no parameters case" from "--help" and made that exit 1
Awesome work, merged, thanks @zeha! ❤️ |
Known todos/questions: