Add clang-format check in CI

This commit is contained in:
Guillaume Meunier
2024-03-30 17:10:27 +01:00
parent 146dd841ab
commit 01f74270c8
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
name: Format
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
path:
- 'client'
- 'server'
- 'common'
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '17'
check-path: ${{ matrix.path }}