GitHub Actions for clang-format check

First QoL check for code health. This action will be executed on each pull request including this one.
This commit is contained in:
Azamat H. Hackimov 2024-04-16 19:20:46 +03:00
parent 4470d664dd
commit 78bb130bac

View File

@ -0,0 +1,18 @@
name: clang-format Check
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '17'