Skip to content

Develop

Develop #115

name: Run clang-format Check
on:
workflow_dispatch:
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: '' # Nothing to exclude
- check: 'test'
exclude: '(template|unity|hw_test)' # Exclude file paths containing "template" or "unity"
steps:
- uses: actions/[email protected]
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: '17'
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}
# fallback-style: 'Microsoft' # optional