Skip to content

Commit 176e9d3

Browse files
committed
automation
1 parent eb97ecb commit 176e9d3

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/validate-rules-csv.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,29 @@ jobs:
2525
shell: pwsh
2626
run: scripts/util/Get-DuplicateRules.ps1 -Language 'all' -CIMode
2727

28-
28+
29+
validate-rules-structure:
30+
name: Validate Rules Structure
31+
runs-on: ubuntu-22.04
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v2
35+
36+
- name: Ensure CPP Shared Rules Have Valid Structure
37+
shell: pwsh
38+
run: scripts/util/Test-SharedImplementationsHaveTestCases.ps1 -Language cpp -CIMode
39+
40+
- name: Ensure C Shared Rules Have Valid Structure
41+
shell: pwsh
42+
run: scripts/util/Test-SharedImplementationsHaveTestCases.ps1 -Language c -CIMode
43+
44+
- uses: actions/upload-artifact@v3
45+
with:
46+
name: missing-test-report.csv
47+
path: MissingTestReport*
48+
49+
- uses: actions/upload-artifact@v3
50+
with:
51+
name: test-report.csv
52+
path: TestReport*
53+

scripts/util/Test-SharedImplementationsHaveTestCases.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ foreach ($r in $REPORT) {
9797
if(($r["TEST_DIR_EXISTS"] -eq $false) -or ($r["SOURCE_CODE_EXISTS"] -eq $false) -or ($r["EXPECTED_EXISTS"] -eq $false) -or ($r["REFERENCE_EXISTS"] -eq $false)){
9898
$failCount += 1
9999
[PSCustomObject]$r | Export-CSV -Path $missingReportOutputFile -Append -NoTypeInformation
100-
101100
}
102101
[PSCustomObject]$r | Export-CSV -Path $reportOutputFile -Append -NoTypeInformation
103102
}

0 commit comments

Comments
 (0)