mirror of
https://github.com/tailix/libkernaux.git
synced 2025-02-24 15:55:41 -05:00
Use Cppcheck
This commit is contained in:
parent
086e4bbc07
commit
4ffef19e43
1 changed files with 7 additions and 1 deletions
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: dependencies
|
||||
run: sudo apt install clang tcc
|
||||
run: sudo apt install clang cppcheck tcc
|
||||
- name: autogen
|
||||
run: ./autogen.sh
|
||||
- name: configure
|
||||
|
@ -32,5 +32,11 @@ jobs:
|
|||
run: make
|
||||
- name: check
|
||||
run: make check || cat test-suite.log
|
||||
- name: cppcheck source code
|
||||
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability include/ src/
|
||||
- name: cppcheck examples
|
||||
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability --suppress=duplicateExpression --suppress=staticStringCompare examples/
|
||||
- name: cppcheck tests
|
||||
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability --suppress=unusedStructMember tests/
|
||||
- name: install
|
||||
run: sudo make install
|
||||
|
|
Loading…
Add table
Reference in a new issue