mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-01 19:07:47 +00:00
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:
committed by
John Crispin
parent
40b64c83b4
commit
ef502b8a18
0
.github/files/supressions_list.txt
vendored
Normal file
0
.github/files/supressions_list.txt
vendored
Normal file
17
.github/workflows/static_analysis.yml
vendored
Normal file
17
.github/workflows/static_analysis.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user