Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update documents to state MISRA C++ 2023 is under development #539

Update documents to state MISRA C++ 2023 is under development

Update documents to state MISRA C++ 2023 is under development #539

name: Validate Package Files
on:
merge_group:
types: [checks_requested]
pull_request:
branches:
- main
- next
- "rc/**"
jobs:
validate-package-files:
strategy:
matrix:
language: [cpp, c]
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install CodeQL
run: |
VERSION="v$( jq -r '.supported_environment | .[0] | .codeql_cli' supported_codeql_configs.json)"
gh extensions install github/gh-codeql
gh codeql set-version "$VERSION"
gh codeql install-stub
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Install generate_package_files.py dependencies
run: pip install -r scripts/requirements.txt
- name: Validate Package Descriptions
env:
LANGUAGE: ${{ matrix.language }}
run: |
python scripts/validate-rule-package.py rule_packages/$LANGUAGE/*.json
- name: Validate Package Descriptions consistency
env:
LANGUAGE: ${{ matrix.language }}
run: |
python scripts/verify_rule_package_consistency.py $LANGUAGE
- name: Validate Current versus Expected Package Files
env:
LANGUAGE: ${{ matrix.language }}
run: |
find rule_packages/$LANGUAGE -name \*.json -exec basename {} .json \; | xargs python scripts/generate_rules/generate_package_files.py $LANGUAGE
git diff
git diff --compact-summary
git diff --quiet
Morty Proxy This is a proxified and sanitized view of the page, visit original site.