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: .