CI: keep old cppcheck job and ignore two files in new job that take too long to check

This commit is contained in:
Reiner Herrmann 2022-07-26 00:13:27 +02:00
parent cfc8547883
commit 53f0b39507

View file

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