name: clang-format Check
on: [pull_request]
jobs:
  formatting-check:
    name: Formatting Check
    runs-on: ubuntu-latest
    strategy:
      matrix:
        path:
          - 'app'
          - 'common'
          - 'dump-shortcuts'
          - 'lib/kdl'
          - 'lib/vm'
    steps:
    - name: Checkout code
      uses: actions/checkout@v4
    - name: Run clang-format style check for C/C++ programs.
      uses: jidicula/clang-format-action@v4.11.0
      with:
        clang-format-version: '14'
        check-path: ${{ matrix.path }}
