From ffad2e8c484b43aa244c2a211107f318248eaf60 Mon Sep 17 00:00:00 2001 From: Anichitei Ionel-Cristinel <49393881+ianichitei@users.noreply.github.com> Date: Tue, 22 Sep 2020 18:04:27 +0300 Subject: [PATCH] Run cppcheck on new commits and PRs --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1599b3c..3a4ff93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,3 +76,14 @@ jobs: run: MSBuild /t:Rebuild /p:Configuration=Release /p:Platform=x64 bddisasm.sln - name: Build bddisasm and bdshemu for Win32 run: MSBuild /t:Rebuild /p:Configuration=Release /p:Platform=Win32 bddisasm.sln + + Code checks: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Install cppcheck + run: sudo apt install -y cppcheck + - name: Run cppcheck + run: cppcheck --language=c --enable=all -I inc/ -I inc/bdshemu -I bddisasm/include bddisasm/ bdshemu/