From 38048210e9016e2a78c8a3b4fdda25f683c1a0d9 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 | 12 ++++++++++++ 1 file changed, 12 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 0000000000000..8f9ddba0e592e --- /dev/null +++ b/.github/workflows/clang-format.yml @@ -0,0 +1,12 @@ +name: Clang Format Checker +on: + pull_request: + types: [opened, synchronize, reopened] +jobs: + clang-format-checking: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: RafikFarhad/clang-format-github-action@v2.1.0 + with: + sources: "src/**/*.h,src/**/*.c,src/**/*.cpp,test/**/*.c,test/**/*.cpp,shell_integration**/*.cpp"