From cc78a756e1f83367237b32acbc04be43ba9b7fac Mon Sep 17 00:00:00 2001 From: Liyan Zheng Date: Tue, 9 Aug 2022 17:58:12 +0800 Subject: [PATCH] Add: clang format check github action --- .github/workflows/clang-format-check.yml | 19 +++++++++++++++++++ 1 file changed, 19 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 00000000..24ba1a27 --- /dev/null +++ b/.github/workflows/clang-format-check.yml @@ -0,0 +1,19 @@ +name: clang-format Check +on: [pull_request] +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + strategy: + matrix: + path: + - 'include' + - 'src' + - 'test' + steps: + - uses: actions/checkout@v2 + - name: Run clang-format style check for C/C++/Protobuf programs. + uses: jidicula/clang-format-action@v4.8.0 + with: + clang-format-version: '14' + check-path: ${{ matrix.path }}