diff --git a/.github/workflows/cpp-lint.yml b/.github/workflows/cpp-lint.yml new file mode 100644 index 0000000..14689e5 --- /dev/null +++ b/.github/workflows/cpp-lint.yml @@ -0,0 +1,22 @@ +name: "C++ Lint" + +on: + push: + branches: [ "master" ] + paths: + - ".github/workflows/**" + - "lib/**" + pull_request: + branches: [ "master" ] + +jobs: + lint: + + runs-on: ubuntu-latest + + steps: + - name: Install cpplint + run: pip install cpplint + - uses: actions/checkout@v4 + - name: Lint with cpplint + run: cpplint lib/*/*