From c5cbbb43f35e02d0bf14b3f2d7aeeb5536a2f6b7 Mon Sep 17 00:00:00 2001 From: EgorWeders <157705588+EgorWeders@users.noreply.github.com> Date: Wed, 21 Aug 2024 09:21:58 +0700 Subject: [PATCH] Added clang-format check action --- .github/workflows/clang-format-check | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/clang-format-check diff --git a/.github/workflows/clang-format-check b/.github/workflows/clang-format-check new file mode 100644 index 0000000..a4adfee --- /dev/null +++ b/.github/workflows/clang-format-check @@ -0,0 +1,17 @@ +name: Clang Format Checker +on: + push: + paths: + - 'src/**' + pull_request: + paths: + - 'src/**' +env: + BRANCH_NAME: master +jobs: + check-format: + runs-on: ubuntu-latest + steps: + - uses: wolletd/clang-format-checker@v1 + with: + target-ref: ${{ env. BRANCH_NAME }} # required, merge target