From dd37e1cb3c0a0eb6080893487cc884558a5f4d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Tue, 20 Aug 2024 23:04:25 +0200 Subject: [PATCH] Github Action to run cppcheck --- .github/workflows/cppcheck.yml | 17 +++++++++++++++++ 1 file changed, 17 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..990af350 --- /dev/null +++ b/.github/workflows/cppcheck.yml @@ -0,0 +1,17 @@ +name: cpplint C++ linter + +on: [push, pull_request] + +jobs: + build: + name: ubuntu-latest + runs-on: ubuntu-latest + steps: + - run: sudo apt update && sudo apt install -y cppcheck + - name: Checkout ${{ github.ref_name }} + uses: actions/checkout@v4 + - run: git submodule update --init --recursive + - run: mkdir build + - run: cmake -G "Unix Makefiles" -DSQLITECPP_BUILD_LIBRARY=OFF -DSQLITE_ENABLE_COLUMN_METADATA=OFF -DSQLITECPP_RUN_CPPCHECK=ON .. + working-directory: build + - run: cmake --build build