github: Fix Windows build

Also update some Actions to get rid of some warnings.

Fixes #11052
This commit is contained in:
Bjørn Erik Pedersen
2023-05-31 16:00:23 +02:00
parent 409c6c3fcd
commit 06faee5beb
2 changed files with 16 additions and 9 deletions

View File

@@ -174,13 +174,13 @@ func Test386() error {
// Run tests
func Test() error {
env := map[string]string{"GOFLAGS": testGoFlags()}
return runCmd(env, goexe, "test", "./...", buildFlags(), "-tags", buildTags())
return runCmd(env, goexe, "test", "./...", "-tags", buildTags())
}
// Run tests with race detector
func TestRace() error {
env := map[string]string{"GOFLAGS": testGoFlags()}
return runCmd(env, goexe, "test", "-race", "./...", buildFlags(), "-tags", buildTags())
return runCmd(env, goexe, "test", "-race", "./...", "-tags", buildTags())
}
// Run gofmt linter