From c68c0817d4bf0f55854d491c7aa49ace6ebe1162 Mon Sep 17 00:00:00 2001 From: pasta Date: Thu, 2 Sep 2021 14:51:12 -0400 Subject: [PATCH] ci: Add github-action that automatically runs clang-format. Will not fail CI Signed-off-by: pasta --- .github/workflows/clang-diff-format.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/clang-diff-format.yml diff --git a/.github/workflows/clang-diff-format.yml b/.github/workflows/clang-diff-format.yml new file mode 100644 index 000000000000..329b2a70c60a --- /dev/null +++ b/.github/workflows/clang-diff-format.yml @@ -0,0 +1,17 @@ +name: Clang Diff Format Check + +on: + pull_request: + branches: + - develop +jobs: + ClangFormat: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Fetch git + run: git fetch + - name: Run Clang-Format-Diff.py + run: git diff -U0 origin/develop | ./contrib/devtools/clang-format-diff.py -p1 +