mirror of
https://github.com/tailix/libkernaux.git
synced 2024-10-30 11:54:01 -04:00
Improve CI config
This commit is contained in:
parent
4ffef19e43
commit
ac31273c8d
1 changed files with 10 additions and 3 deletions
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: dependencies
|
||||
run: sudo apt install clang cppcheck tcc
|
||||
run: sudo apt install clang tcc
|
||||
- name: autogen
|
||||
run: ./autogen.sh
|
||||
- name: configure
|
||||
|
@ -32,11 +32,18 @@ jobs:
|
|||
run: make
|
||||
- name: check
|
||||
run: make check || cat test-suite.log
|
||||
- name: install
|
||||
run: sudo make install
|
||||
|
||||
cppcheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: dependencies
|
||||
run: sudo apt install cppcheck
|
||||
- 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…
Reference in a new issue