Merge pull request #790 from github/lcartey/fix-help-repo-fetch #2565
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ⚙️ Extra Rule Validation | |
on: | |
merge_group: | |
types: [checks_requested] | |
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@v4 | |
- 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@v4 | |
- 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@v4 | |
if: failure() | |
with: | |
name: missing-test-report.csv | |
path: MissingTestReport*.csv | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: test-report.csv | |
path: TestReport*.csv | |
if-no-files-found: error | |