From e0724c0ae26f9073864c8a6be869be33cd391433 Mon Sep 17 00:00:00 2001 From: Viet Anh Nguyen Date: Fri, 28 Jul 2023 23:18:59 +0700 Subject: [PATCH] Add format check workflow --- .github/workflows/code-format-check.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/code-format-check.yml diff --git a/.github/workflows/code-format-check.yml b/.github/workflows/code-format-check.yml new file mode 100644 index 0000000..42d7e11 --- /dev/null +++ b/.github/workflows/code-format-check.yml @@ -0,0 +1,18 @@ +name: C++ format check +on: [push, pull_request] +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + strategy: + matrix: + path: + - check: 'customchar' + steps: + - uses: actions/checkout@v2 + - name: Run clang-format style check for C/C++ programs. + uses: jidicula/clang-format-action@v4.4.1 + with: + clang-format-version: '13' + check-path: ${{ matrix.path['check'] }} + fallback-style: 'Google' # optional