diff options
Diffstat (limited to '.github/workflows/cppcheck.yml')
| -rw-r--r-- | .github/workflows/cppcheck.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index 666afd27..9a6523cd 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -13,5 +13,12 @@ jobs: - name: cppcheck shell: bash run: | + set -o pipefail sudo apt install cppcheck - cppcheck --enable=warning,portability,performance --language=c --platform=unix32 --std=c99 --force . -i third_party/ -i class/template -i port/template/ + cppcheck --enable=warning,portability,performance --language=c --platform=unix32 --std=c99 --quiet --force . -i third_party/ -i class/template -i port/template/ -i tests/ --include=tests/hpmicro/inc/usb_config.h 2>&1 | tee cppcheck.log + - name: Upload cppcheck log + if: always() + uses: actions/upload-artifact@v4 + with: + name: cppcheck-log + path: cppcheck.log |
