From c96d6e63a0e3febc6a8fb1807dd9dd3bb229dfab Mon Sep 17 00:00:00 2001 From: Valerio De Benedetto Date: Mon, 23 Jan 2023 18:43:11 +0100 Subject: [PATCH] Added clang-format check workflow --- .github/workflows/clang-format-check.yml | 14 ++++++++++++++ 1 file changed, 14 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..567f53d --- /dev/null +++ b/.github/workflows/clang-format-check.yml @@ -0,0 +1,14 @@ +name: clang-format check +on: [workflow_dispatch, pull_request] +jobs: + formatting-check: + name: Formatting check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run clang-format style check for C/C++/Protobuf programs. + uses: jidicula/clang-format-action@v4.10.1 + with: + clang-format-version: '13' + check-path: '.' + include-regex: '^.*\.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$)))$'