github action: check coding style of commits

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-04-08 23:49:43 +01:00 committed by yshui
parent 3ad4ce9f77
commit be0d4b9681
1 changed files with 14 additions and 0 deletions

14
.github/workflows/coding-style.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: code-style
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: yshui/git-clang-format-lint@v1.7
with:
base: ${{ github.event.ref }}~1