From 53f0b39507a76021468dd123641603e775270a4b Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Tue, 26 Jul 2022 00:13:27 +0200 Subject: CI: keep old cppcheck job and ignore two files in new job that take too long to check --- .github/workflows/build-extra.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.github') diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml index 9eb489d52..ff812ca32 100644 --- a/.github/workflows/build-extra.yml +++ b/.github/workflows/build-extra.yml @@ -55,6 +55,16 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b + - name: install cppcheck + run: sudo apt-get install cppcheck + - name: cppcheck + run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance -i src/firejail/checkcfg.c -i src/firejail/main.c . + # new cppcheck version currently chokes on checkcfg.c and main.c, therefore scan all files also + # with older cppcheck version from ubuntu 20.04. + cppcheck_old: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - name: install cppcheck run: sudo apt-get install cppcheck - name: cppcheck -- cgit v1.2.3-70-g09d2