Skip to content

Add a code formatter (#1) #4

Add a code formatter (#1)

Add a code formatter (#1) #4

name: clang-format Check
on:
push:
branches:
- main
- develop
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/[email protected]
with:
clang-format-version: '13'
check-path: ${{ matrix.path }}
exclude-regex: 'include/json.hpp'
fallback-style: 'Mozilla' # optional