Skip to content

Commit

Permalink
clang formatting ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed May 11, 2024
1 parent a9bf909 commit 734d78d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: clang-format-review

# You can be more specific, but it currently only works on pull requests
on: [pull_request]

jobs:
clang-format:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install clang-tidy
run: |
sudo apt-get update
sudo apt-get install -y clang-tidy
- name: Analyze
run: |
clang-format --dry-run --Werror -style=file $(find ./ -name '*.cc' -print)
clang-format --dry-run --Werror -style=file $(find ./ -name '*.hh' -print)

0 comments on commit 734d78d

Please sign in to comment.