From c02498dd245eff3aaa28c5d858734967f3d90e3a Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 6 Jul 2023 17:22:06 +0100 Subject: [PATCH] Add clang-tidy action --- .github/workflows/lint.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..608adf8ab --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,19 @@ +name: Linting +on: + pull_request: +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: ZedThree/clang-tidy-review@v0.12.0 + id: review + + # Uploads an artefact containing clang_fixes.json + - uses: ZedThree/clang-tidy-review/upload@v0.12.0 + id: upload-review + + # If there are any comments, fail the check + - if: steps.review.outputs.total_comments > 0 + run: exit 1 \ No newline at end of file