Skip to content

Commit e6b57d2

Browse files
committed
Configure clang-format to run on each PR
Signed-off-by: Janek Łukaszewicz <janluk@google.com>
1 parent c0a1f60 commit e6b57d2

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

‎.clang-format‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BasedOnStyle: Google
2+
Language: Cpp
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: clang-format
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
- name: Run clang-format
13+
uses: jidicula/clang-format-action@v4.16.0
14+
with:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
check-path: 'include'
17+
clang_format_version: 21

0 commit comments

Comments
 (0)