From 4184f59d0bf3d9fbde9ea8efdcd82b0a8a8dcfe8 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 30 Dec 2023 12:30:14 +0100 Subject: [PATCH] Add action to validate code style --- .github/workflows/clang-format-check.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/clang-format-check.yaml diff --git a/.github/workflows/clang-format-check.yaml b/.github/workflows/clang-format-check.yaml new file mode 100644 index 0000000..8c68b99 --- /dev/null +++ b/.github/workflows/clang-format-check.yaml @@ -0,0 +1,20 @@ +--- +name: clang-format Check + +on: + - push + - pull_request + +permissions: + contents: read + +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run clang-format style check + uses: jidicula/clang-format-action@v4.11.0 + with: + clang-format-version: '13'