Added clang-format check action

This commit is contained in:
EgorWeders 2024-08-21 09:21:58 +07:00 committed by GitHub
parent 83af8cc541
commit c5cbbb43f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

17
.github/workflows/clang-format-check vendored Normal file
View File

@ -0,0 +1,17 @@
name: Clang Format Checker
on:
push:
paths:
- 'src/**'
pull_request:
paths:
- 'src/**'
env:
BRANCH_NAME: master
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: wolletd/clang-format-checker@v1
with:
target-ref: ${{ env. BRANCH_NAME }} # required, merge target