From 186d2835ac038900f5ada9fad890fb8baea945fe Mon Sep 17 00:00:00 2001 From: Aymeric Wibo Date: Thu, 8 Aug 2024 01:27:43 +0200 Subject: [PATCH] ci: Workflow for checking formatting --- .github/workflows/formatting.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/formatting.yml diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml new file mode 100644 index 0000000..1ed3c6f --- /dev/null +++ b/.github/workflows/formatting.yml @@ -0,0 +1,14 @@ +name: Check formatting + +on: [push, pull_request, workflow_dispatch] + +jobs: + check_formatting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run clang-format + uses: jidicula/clang-format-action@v4.13.0 + with: + clang-format-version: 18 + check-path: .