Skip to content

Commit

Permalink
action: add lint
Browse files Browse the repository at this point in the history
Signed-off-by: liulanzheng <lanzheng.liulz@alibaba-inc.com>
  • Loading branch information
liulanzheng committed Mar 15, 2022
1 parent dbb9b19 commit d9d38a3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ IndentWidth: 4
AccessModifierOffset: -4
SortIncludes: false
ColumnLimit: 100
AllowShortFunctionsOnASingleLine: None
AllowShortFunctionsOnASingleLine: None
AlwaysBreakTemplateDeclarations: true
BreakStringLiterals: false
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: clang-format-linter

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: yshui/git-clang-format-lint@master

0 comments on commit d9d38a3

Please sign in to comment.