Added clang-format check workflow

This commit is contained in:
Valerio De Benedetto 2023-01-23 18:43:11 +01:00
parent 9964a63d49
commit c96d6e63a0

View 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|\+\+)?$)))$'