From d23b63c7cb7ec6edf4950932ba70e0c745bdce5f Mon Sep 17 00:00:00 2001 From: Pheenoh Date: Sat, 26 Dec 2020 13:18:14 -0500 Subject: [PATCH] add clang-format CI check --- .github/workflows/clang-format-check.yml | 15 +++++++++++++++ .github/workflows/{c-cpp.yml => ok-check.yml} | 0 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/clang-format-check.yml rename .github/workflows/{c-cpp.yml => ok-check.yml} (100%) diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml new file mode 100644 index 0000000000..789f7ca5c9 --- /dev/null +++ b/.github/workflows/clang-format-check.yml @@ -0,0 +1,15 @@ +name: Clang Format Check + +on: pull_request + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: DoozyX/clang-format-lint-action@v0.11 + with: + source: '.' + extensions: 'h,cpp' + clangFormatVersion: 11 \ No newline at end of file diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/ok-check.yml similarity index 100% rename from .github/workflows/c-cpp.yml rename to .github/workflows/ok-check.yml