Add Unit test running on GitActions #1496
Workflow file for this run
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: C++ Static code analysis | |
on: [push, pull_request] | |
jobs: | |
cppcheck: | |
name: run-cppcheck | |
runs-on: ubuntu-latest | |
container: | |
image: neszt/cppcheck-docker:2.9 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cppcheck --version | |
- run: cppcheck --error-exitcode=1 --std=c++17 --language=c++ -j$(getconf _NPROCESSORS_ONLN) -I . -i test/ -i external/ -i build/ --suppressions-list=.cppcheck-suppressions --inline-suppr . | |
- run: cppcheck --error-exitcode=1 --std=c++17 --language=c++ -j$(getconf _NPROCESSORS_ONLN) -I . -I test/include --suppressions-list=.cppcheck-suppressions --inline-suppr ./test |