Skip to content

Commit 6f53e50

Browse files
committed
build: add ftw cloud test
1 parent 65546f0 commit 6f53e50

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,4 +298,14 @@ jobs:
298298
Exit 1
299299
}
300300
301-
Get-EventLog -LogName Application -Source ModSecurity | Format-List
301+
Get-EventLog -LogName Application -Source ModSecurity | Format-List
302+
303+
- name: Test ModSecurity Rules
304+
shell: pwsh
305+
run: |
306+
$testRuleDir = "C:\Program Files\ModSecurity IIS\coreruleset\tests\regression\tests"
307+
308+
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
311+

0 commit comments

Comments
 (0)