From 0757d95c79697ed2d0a9836fa65a0494cc5df85b Mon Sep 17 00:00:00 2001 From: Uladzislau Nikalayevich Date: Sat, 26 Oct 2024 05:00:03 +0300 Subject: [PATCH 1/3] Add clang-format Check --- .github/workflows/clang-format-check.yml | 12 ++++++++++++ 1 file changed, 12 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 0000000000..d56f096dd7 --- /dev/null +++ b/.github/workflows/clang-format-check.yml @@ -0,0 +1,12 @@ +name: clang-format Check +on: [push, pull_request] +jobs: + clang-format-checking: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: DoozyX/clang-format-lint-action@v0.18.1 + with: + source: 'Client Server Shared' + extensions: 'h,cpp,c,hpp' + clangFormatVersion: 16 From c4de3392fe6e2a6392ed879b97aa937eb5d476ef Mon Sep 17 00:00:00 2001 From: Uladzislau Nikalayevich Date: Sat, 26 Oct 2024 05:58:14 +0300 Subject: [PATCH 2/3] on push only --- .github/workflows/clang-format-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index d56f096dd7..f8a848c6bf 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml @@ -1,5 +1,5 @@ name: clang-format Check -on: [push, pull_request] +on: [push] jobs: clang-format-checking: runs-on: ubuntu-latest From 15b4f0a094a8344c6abf78d59df4950e2da88d4c Mon Sep 17 00:00:00 2001 From: Uladzislau Nikalayevich Date: Sat, 26 Oct 2024 06:04:34 +0300 Subject: [PATCH 3/3] Revert "on push only" This reverts commit c4de3392fe6e2a6392ed879b97aa937eb5d476ef. --- .github/workflows/clang-format-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index f8a848c6bf..d56f096dd7 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml @@ -1,5 +1,5 @@ name: clang-format Check -on: [push] +on: [push, pull_request] jobs: clang-format-checking: runs-on: ubuntu-latest