staticanalysis: add the github CI config for static code analysis

This patch adds support for static code analysis with cppcheck inside the github CI.

Signed-off-by: Eugene Taranov <eugene@opsfleet.com>
This commit is contained in:
Eugene Taranov
2020-07-03 15:17:28 +03:00
committed by John Crispin
parent 40b64c83b4
commit ef502b8a18
2 changed files with 17 additions and 0 deletions

0
.github/files/supressions_list.txt vendored Normal file
View File

17
.github/workflows/static_analysis.yml vendored Normal file
View File

@@ -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