From 9c16f05d4c913a768a6a1d7268b838e79696a3d0 Mon Sep 17 00:00:00 2001 From: Aarik Pokras <85502246+aarikpokras@users.noreply.github.com> Date: Thu, 12 Dec 2024 13:49:15 -0500 Subject: [PATCH] Create cpp-lint.yml --- .github/workflows/cpp-lint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/cpp-lint.yml 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/*/*