Skip to content

Commit

Permalink
add clang-tidy GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Feb 21, 2024
1 parent 5af4400 commit 4d1face
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/clang-tidy.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
id: review

# Uploads an artefact containing clang_fixes.json
- uses: ZedThree/clang-tidy-review/[email protected]
id: upload-review

# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1

0 comments on commit 4d1face

Please sign in to comment.