Skip to content

Commit e6192b8

Browse files
committed
fix: go bin location
1 parent 6f53e50 commit e6192b8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test-ci-windows.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,13 @@ jobs:
306306
$testRuleDir = "C:\Program Files\ModSecurity IIS\coreruleset\tests\regression\tests"
307307
308308
go install github.com/coreruleset/go-ftw@latest
309-
cd go\bin
310-
& go-ftw.exe -d $testRuleDir --cloud -e 920380-1 --show-failures-only
309+
$goBinPath = ""
310+
if ($env:GOBIN) {
311+
$goBinPath = $env:GOBIN
312+
} elseif ($env:GOPATH) {
313+
$goBinPath = Join-Path $env:GOPATH "bin"
314+
} else {
315+
$goBinPath = Join-Path $env:USERPROFILE "go\bin"
316+
}
317+
& "$goBinPath\go-ftw.exe" -d $testRuleDir --cloud -e 920380-1 --show-failures-only
311318

0 commit comments

Comments
 (0)