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