From 734d78d1a43892f168a7fdcfaa81f567861a6ac6 Mon Sep 17 00:00:00 2001 From: tanneberger Date: Sat, 11 May 2024 23:00:40 +0200 Subject: [PATCH] clang formatting ci --- .github/workflows/clang-format.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/clang-format.yml diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml new file mode 100644 index 0000000..bb38ef6 --- /dev/null +++ b/.github/workflows/clang-format.yml @@ -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)