[CI] Run cppcheck before build

This commit is contained in:
Mat Sutcliffe
2020-06-16 17:03:08 +01:00
parent 5c7a8a39e1
commit 71de2186ae

View File

@@ -23,6 +23,16 @@ jobs:
with:
name: xswiftbus-thin-allos-${{ github.run_id }}
failOnError: false
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Run cppcheck
run: |
sudo apt install cppcheck
cppcheck --template=gcc --inline-suppr --std=c++14 --enable=style,unusedFunction -i externals \
--suppressions-list=cppcheck.supp --library=qt.cfg --library=posix.cfg . | tee error.log
ls -l error.log
buildLinux:
runs-on: ubuntu-16.04