action:add clang format check

This commit is contained in:
xiaoyifang 2022-02-05 14:48:58 +08:00
parent f654fdfa33
commit 417bf693db

27
.github/workflows/clang-format.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Clang Format Checker
on:
workflow_dispatch:
push:
branches:
- dev
- staged
paths-ignore:
- 'docs/**'
- ".github/**"
- "howto/**"
pull_request:
branches:
- dev
- staged
paths-ignore:
- 'docs/**'
- ".github/**"
- "howto/**"
jobs:
clang-format-checking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: RafikFarhad/clang-format-github-action@v1.0.1
# with:
# sources: "**/*"