Skip to content

Update cpp-linux-build.yml #109

Update cpp-linux-build.yml

Update cpp-linux-build.yml #109

name: clang-format Check
on:
push:
branches: [ "master", "cleanup" ]
pull_request:
branches: [ "master" ]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'test'
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: '16'
check-path: ${{ matrix.path }}
fallback-style: 'LLVM' # optional