Add: clang format check github action

This commit is contained in:
Liyan Zheng 2022-08-09 17:58:12 +08:00
parent 2054b0eda4
commit cc78a756e1
1 changed files with 19 additions and 0 deletions

View File

@ -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 }}