Skip to content

Commit

Permalink
Github Action to run cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
SRombauts committed Aug 20, 2024
1 parent 071b3f7 commit dd37e1c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dd37e1c

Please sign in to comment.