ci: Use CodeChecker as static analysis tool #4
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: Clang Static Analyzer | |
on: [push, pull_request] | |
jobs: | |
codechecker_static_analyzer: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install CodeChecker | |
run: | | |
sudo apt-get update | |
sudo apt-get install clang-tools-18 cmake cppcheck libcunit1-dev ninja-build unzip wget | |
pip3 install codechecker | |
- name: Run CodeChecker | |
run: | | |
run: tools/ci/run_ci.sh --run-build --run-code-checker --code-checker diff | |
- name: Upload CodeChecker reports | |
uses: actions/upload-artifact@v4 | |
with: | |
name: CodeChecker Reports | |
path: build-wakaama/codechecker_report |