-
Notifications
You must be signed in to change notification settings - Fork 59
59 lines (46 loc) · 1.31 KB
/
extra-rule-validation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: ⚙️ Extra Rule Validation
on:
merge_group:
push:
branches:
- main
- "rc/**"
- next
pull_request:
branches:
- main
- "rc/**"
- next
jobs:
validate-rules-csv:
name: Validate Rules CSV
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check Rules
shell: pwsh
run: scripts/util/Get-DuplicateRules.ps1 -Language 'all' -CIMode
validate-shared-rules-test-structure:
name: Validate Rules Test Structure
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Ensure CPP Shared Rules Have Valid Structure
shell: pwsh
run: scripts/util/Test-SharedImplementationsHaveTestCases.ps1 -Language cpp -CIMode
- name: Ensure C Shared Rules Have Valid Structure
shell: pwsh
run: scripts/util/Test-SharedImplementationsHaveTestCases.ps1 -Language c -CIMode
- uses: actions/upload-artifact@v3
if: failure()
with:
name: missing-test-report.csv
path: MissingTestReport*.csv
- uses: actions/upload-artifact@v3
if: failure()
with:
name: test-report.csv
path: TestReport*.csv
if-no-files-found: error