Skip to content

github action fixes #871

github action fixes

github action fixes #871

name: clang-format Check
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- check: 'src'
exclude: 'src/components/(cmd_nvs|cmd_system)'
- check: 'examples'
exclude: 'btstack_config.h'
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['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}