Run tests on GitHub Actions

This commit is contained in:
Alexander Neumann
2019-11-18 21:16:47 +01:00
parent 275f713211
commit 5cf42884c8
2 changed files with 245 additions and 2 deletions

View File

@@ -32,9 +32,9 @@ func getStringVar(name, defaultValue string) string {
func getBoolVar(name string, defaultValue bool) bool {
if e := os.Getenv(name); e != "" {
switch e {
case "1":
case "1", "true":
return true
case "0":
case "0", "false":
return false
default:
fmt.Fprintf(os.Stderr, "invalid value for variable %q, using default\n", name)