From 4f1dda1b6deebf4b28470b122d3b68700398702f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Thu, 29 Feb 2024 16:00:03 +0100 Subject: [PATCH] Cppcheck: add ci cppcheck --- .github/workflows/cppcheck.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/cppcheck.yml diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml new file mode 100644 index 00000000..39a895a0 --- /dev/null +++ b/.github/workflows/cppcheck.yml @@ -0,0 +1,19 @@ +name: cppcheck +on: [pull_request] + +jobs: + cppchceck: + name: Cppcheck + runs-on: ubuntu-latest + steps: + - name: Setup + run: sudo apt-get install -y -q cppcheck + + - name: Checkout + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }} + ref: ${{ github.ref }} + + - name: Check + run: cppcheck --quiet --error-exitcode=1 src/