From ac31273c8d48e7883d933d16739f4b7106528a09 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 18 Dec 2021 01:26:29 +0500 Subject: [PATCH] Improve CI config --- .github/workflows/test.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 196afed..f1e5a95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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