From 7a3492b6fe9ed89441f0a8da2d13988e360a239e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BF=90=E6=9D=A5?= Date: Thu, 16 Nov 2023 15:45:24 +0800 Subject: [PATCH] add clang-format checker --- .github/workflows/clang-format.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/clang-format.yml diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml new file mode 100644 index 000000000..dd95f952c --- /dev/null +++ b/.github/workflows/clang-format.yml @@ -0,0 +1,14 @@ +name: Clang Format Checker +on: + pull_request: + branches: [ "main" ] +jobs: + clang-format-checking: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: RafikFarhad/clang-format-github-action@v3 + with: + sources: "**/*.h,**/*.cpp" + excludes: "yacc_sql.cpp,yacc_sql.hpp,lex_sql.cpp,lex_sql.h" + style: "file" \ No newline at end of file