Skip to content

Commit fa4166f

Browse files
committed
fix: go-ftw command
1 parent e6192b8 commit fa4166f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,15 @@ jobs:
300300
301301
Get-EventLog -LogName Application -Source ModSecurity | Format-List
302302
303+
- name: Install go-ftw
304+
shell: pwsh
305+
run: |
306+
go install github.com/coreruleset/go-ftw@latest
307+
303308
- name: Test ModSecurity Rules
304309
shell: pwsh
305310
run: |
306311
$testRuleDir = "C:\Program Files\ModSecurity IIS\coreruleset\tests\regression\tests"
307-
308-
go install github.com/coreruleset/go-ftw@latest
309312
$goBinPath = ""
310313
if ($env:GOBIN) {
311314
$goBinPath = $env:GOBIN
@@ -314,5 +317,6 @@ jobs:
314317
} else {
315318
$goBinPath = Join-Path $env:USERPROFILE "go\bin"
316319
}
317-
& "$goBinPath\go-ftw.exe" -d $testRuleDir --cloud -e 920380-1 --show-failures-only
320+
321+
& "$goBinPath\go-ftw.exe" run -d $testRuleDir --cloud -e 920380-1 --show-failures-only
318322

0 commit comments

Comments
 (0)