Try official clang-format action
Some checks failed
clang-format Check / Formatting Check (map[check:main/src exclude:]) (push) Failing after 10s

This commit is contained in:
Andreas Tsouchlos 2023-11-26 19:15:28 +01:00
parent a84ad5b430
commit d254049421

View File

@ -3,18 +3,18 @@ on: [push, pull_request]
jobs: jobs:
formatting-check: formatting-check:
name: Formatting Check name: Formatting Check
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
path: path:
- check: 'main/src' - check: 'main/src'
exclude: '' # Nothing to exclude
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Run clang-format style check for C/C++/Protobuf programs. - name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.11.0 uses: jidicula/clang-format-action@v4.11.0
with: with:
clang-format-version: '13' clang-format-version: '13'
check-path: ${{ matrix.path['check'] }} check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }} exclude-regex: ${{ matrix.path['exclude'] }}
fallback-style: 'Mozilla' # optional fallback-style: 'Mozilla' # optional