From aa0fed09a7b1e43469ee0f5052f292eda3b0841a Mon Sep 17 00:00:00 2001 From: Melvin Keskin Date: Mon, 3 Oct 2022 18:13:59 +0200 Subject: .github: workflows: Add C++ linter --- .github/workflows/tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6cccb5f7..fb81a3ee 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -61,3 +61,19 @@ jobs: - uses: actions/checkout@v3 - name: REUSE Compliance Check uses: fsfe/reuse-action@v1 + cpp-linter: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cpp-linter/cpp-linter-action@v2 + id: linter + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + style: file + version: 15 + files-changed-only: false + thread-comments: true + - name: C++ Linter + if: steps.linter.outputs.checks-failed > 0 + run: echo "Some files failed the linting checks!" -- cgit v1.2.3