Repository navigation
Prepare MISRA C:2025 development with end-to-end examples #2619
This file contains hidden or 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: Validate Query Help Files | |
| permissions: | |
| contents: read | |
| on: | |
| merge_group: | |
| types: [checks_requested] | |
| pull_request: | |
| branches: | |
| - main | |
| - next | |
| - "rc/**" | |
| jobs: | |
| validate-query-help-files: | |
| strategy: | |
| matrix: | |
| language: [cpp, c] | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ inputs.ref }} | |
| - name: Validate Query Help Files | |
| env: | |
| LANGUAGE: ${{ matrix.language }} | |
| run: | | |
| exit_code=0 | |
| for help_file in `find $LANGUAGE -name '*.md'` | |
| do | |
| if grep -F -q 'REPLACE THIS' "$help_file" > /dev/null | |
| then | |
| echo "Help file $help_file contains placeholders that are not replaced or removed!" | |
| exit_code=1 | |
| fi | |
| done | |
| exit $exit_code |