From 4d1facea689e0073656c22fce3a93ba1227700e0 Mon Sep 17 00:00:00 2001 From: Nir Azkiel Date: Wed, 21 Feb 2024 22:46:42 +0200 Subject: [PATCH] add clang-tidy GHA --- .github/workflows/clang-tidy.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/clang-tidy.yaml diff --git a/.github/workflows/clang-tidy.yaml b/.github/workflows/clang-tidy.yaml new file mode 100644 index 00000000000..6cdb69c3ce7 --- /dev/null +++ b/.github/workflows/clang-tidy.yaml @@ -0,0 +1,29 @@ +name: clang-tidy-review + +on: + push: + branches: ['**'] + pull_request: + branches: ['**'] + +permissions: read-all + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + # Optionally generate compile_commands.json + + - uses: ZedThree/clang-tidy-review@v0.14.0 + id: review + + # Uploads an artefact containing clang_fixes.json + - uses: ZedThree/clang-tidy-review/upload@v0.14.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