Add GH Action for Testing on Windows (#132)

* Add windows specific test changes
* Change the command line parsing library - Possible breaking changes for windows users!
This commit is contained in:
Benson Wong
2025-05-14 21:51:53 -07:00
committed by GitHub
parent 5025c2f1f3
commit d7b390df74
11 changed files with 136 additions and 42 deletions

View File

@@ -45,7 +45,12 @@ func TestMain(m *testing.M) {
func getSimpleResponderPath() string {
goos := runtime.GOOS
goarch := runtime.GOARCH
return filepath.Join("..", "build", fmt.Sprintf("simple-responder_%s_%s", goos, goarch))
if goos == "windows" {
return filepath.Join("..", "build", "simple-responder.exe")
} else {
return filepath.Join("..", "build", fmt.Sprintf("simple-responder_%s_%s", goos, goarch))
}
}
func getTestPort() int {