summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/cppcheck.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml
new file mode 100644
index 00000000..666afd27
--- /dev/null
+++ b/.github/workflows/cppcheck.yml
@@ -0,0 +1,17 @@
+name: Cppcheck action
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ build:
+ name: cppcheck
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: cppcheck
+ shell: bash
+ run: |
+ 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/