From e64d9f121bba1a14d8fdfd0a470bbbb2d2cc0181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20Str=C3=B8m?= <48532094+chrstrom@users.noreply.github.com> Date: Tue, 8 Mar 2022 19:56:40 +0100 Subject: [PATCH] Create clang-format-check.yml --- .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..8d05533 --- /dev/null +++ b/.github/workflows/clang-format-check.yml @@ -0,0 +1,14 @@ +name: clang-format check +on: [push] +jobs: + formatting-check: + name: C/C++ LLVM formatting check + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Run clang-format style check for C/C++ packages + uses: jidicula/clang-format-action@v4.5.0 + with: + clang-format-version: '13' + check-path: '.' + fallback-style: 'llvm' # for when the .clang-format file does not exist