diff --git a/.github/files/supressions_list.txt b/.github/files/supressions_list.txt new file mode 100644 index 000000000..e69de29bb diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml new file mode 100644 index 000000000..e3b124f46 --- /dev/null +++ b/.github/workflows/static_analysis.yml @@ -0,0 +1,17 @@ +name: Run static analysis + +on: + push: + branches: [ trunk ] + pull_request: + branches: [ trunk ] + +jobs: + static_analysis: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: install cppcheck + run: sudo apt install -y cppcheck + - name: Run cppcheck + run: cppcheck --error-exitcode=1 -j 2 --suppressions-list=.github/files/supressions_list.txt feeds/wlan-ap/opensync/src