From b6d2828a2d8200d35435086e6605085508ce3970 Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Sat, 17 Dec 2022 13:12:11 +0100 Subject: CI: Add checkstyle checking to workflow Signed-off-by: Johnny Richard --- .github/workflows/clang-format-check.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/clang-format-check.yml diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml new file mode 100644 index 0000000..3976b57 --- /dev/null +++ b/.github/workflows/clang-format-check.yml @@ -0,0 +1,19 @@ +name: clang-format Check +on: [push, pull_request] +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + strategy: + matrix: + path: + - 'src' + - 'test' + steps: + - uses: actions/checkout@v3 + - name: Run clang-format style check for C/C++ programs. + uses: jidicula/clang-format-action@v4.9.0 + with: + clang-format-version: '14' + check-path: ${{ matrix.path }} + fallback-style: 'Mozilla' -- cgit v1.2.3