From 27485e2e66f81098ff8e5d9f8c8e87c8697a885d Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 30 Sep 2022 16:43:23 +0200 Subject: [PATCH] let's check the format via some github action Signed-off-by: Matthieu Gallien --- .github/workflows/clang-format.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/clang-format.yml diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml new file mode 100644 index 000000000..0547ee643 --- /dev/null +++ b/.github/workflows/clang-format.yml @@ -0,0 +1,15 @@ +name: Clang Format Checker +on: + pull_request: + types: [opened, synchronize, reopened] +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: DoozyX/clang-format-lint-action@v0.14 + with: + source: '.' + extensions: 'h,cpp,c' + clangFormatVersion: 14