添加本地虚拟机环境搭建和vscode开发配置教程 #299
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clang Format Checker | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
clang-format-checking: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: RafikFarhad/clang-format-github-action@v3 | |
with: | |
# sources 和 excludes 最终生成的find查找文件的命令大概是这样的 | |
# find . -type f ! -wholename "./src/observer/sql/parser/lex_sql.*" \( -wholename "./**/*.h" -o -wholename "./**/*.cpp" \) | |
sources: "**/*.h,**/*.cpp,src/**/*.h,src/**/*.cpp" | |
excludes: "src/observer/sql/parser/lex_sql.*,src/observer/sql/parser/yacc_sql.*,deps/3rd/**/*.cpp,deps/3rd/**/*.h" | |
style: "file" |