diff --git a/.github/workflows/cpp-linter.yml b/.github/workflows/cpp-linter.yml new file mode 100644 index 000000000..51b0eeb4d --- /dev/null +++ b/.github/workflows/cpp-linter.yml @@ -0,0 +1,35 @@ +name: cpp-linter + +on: + push: + branches: + - master + paths-ignore: + - "submodules/**" + - "samples/**" + pull_request: + branches: + - master + paths-ignore: + - "submodules/**" + - "samples/**" + +jobs: + cpp-linter: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cpp-linter/cpp-linter-action@main + id: linter + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + style: file + files-changed-only: false + + - name: C++ Linter check status + if: steps.linter.outputs.checks-failed != 0 + run: | + echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}" + exit 1 \ No newline at end of file