From f5344bd72227813d6f1215b8d382c9ea715c8fcc Mon Sep 17 00:00:00 2001 From: obligaron Date: Wed, 11 Aug 2021 08:11:40 +0200 Subject: [PATCH] Add clang-format validation to CI --- .github/workflows/clang-format-check.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 000000000..50d7924c3 --- /dev/null +++ b/.github/workflows/clang-format-check.yml @@ -0,0 +1,21 @@ +name: clang-format check + +on: [push, pull_request] + +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + strategy: + matrix: + path: + - 'Source' + - 'test' + steps: + - uses: actions/checkout@v2 + - name: Run clang-format style check for C/C++ programs. + uses: jidicula/clang-format-action@v3.4.0 + with: + clang-format-version: '11' + check-path: ${{ matrix.path }} + fallback-style: 'webkit'