Add cppcheck static analysis CI #1
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: Cppcheck Static Analysis | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| cppcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install cppcheck | |
| run: sudo apt-get install -y cppcheck | |
| - name: Run cppcheck | |
| run: cppcheck --project=display.cppcheck --error-exitcode=1 | |
| - name: Report cppcheck version | |
| run: cppcheck --version | |
| - name: Run cppcheck | |
| run: cppcheck --project=display.cppcheck --error-exitcode=1 |