Added clang-format check workflow
This commit is contained in:
parent
9964a63d49
commit
c96d6e63a0
14
.github/workflows/clang-format-check.yml
vendored
Normal file
14
.github/workflows/clang-format-check.yml
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
name: clang-format check
|
||||||
|
on: [workflow_dispatch, pull_request]
|
||||||
|
jobs:
|
||||||
|
formatting-check:
|
||||||
|
name: Formatting check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Run clang-format style check for C/C++/Protobuf programs.
|
||||||
|
uses: jidicula/clang-format-action@v4.10.1
|
||||||
|
with:
|
||||||
|
clang-format-version: '13'
|
||||||
|
check-path: '.'
|
||||||
|
include-regex: '^.*\.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$)))$'
|
||||||
Loading…
Reference in New Issue
Block a user