From 501a47c3b4893971ed1e3bcc89bf5bebc3cf7116 Mon Sep 17 00:00:00 2001 From: Evgeny Kornev Date: Mon, 13 Jan 2025 11:11:27 +0200 Subject: [PATCH] CI: add clang format CI action --- .github/workflows/clang_format_check.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/clang_format_check.yml diff --git a/.github/workflows/clang_format_check.yml b/.github/workflows/clang_format_check.yml new file mode 100644 index 0000000..8ab08fa --- /dev/null +++ b/.github/workflows/clang_format_check.yml @@ -0,0 +1,14 @@ +name: clang-format Check +on: [push, pull_request] +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run clang-format style check for C/C++/Protobuf programs. + uses: jidicula/clang-format-action@v4.14.0 + with: + clang-format-version: '14' + check-path: 'src' + fallback-style: 'Mozilla' # optional