From 8cdeaed9911d75eacb9c61e73dae5d5935fb54cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=8A=D9=88=D8=B3=D9=81?= <45167695+YousefEZ@users.noreply.github.com> Date: Wed, 6 Mar 2024 18:22:32 +0000 Subject: [PATCH] :sparkles: add format-checker.yml --- .github/workflows/format-checker.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/format-checker.yml diff --git a/.github/workflows/format-checker.yml b/.github/workflows/format-checker.yml new file mode 100644 index 00000000..5705eaf6 --- /dev/null +++ b/.github/workflows/format-checker.yml @@ -0,0 +1,19 @@ +name: clang-format Check +on: [push, pull_request] +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + strategy: + matrix: + path: + - 'src' + - 'libs' + steps: + - uses: actions/checkout@v3 + - name: Run clang-format style check for C/C++/Protobuf programs. + uses: jidicula/clang-format-action@v4.11.0 + with: + clang-format-version: '13' + check-path: ${{ matrix.path }} + fallback-style: 'Mozilla' # optional