Skip to content

Commit 61933dc

Browse files
committed
#2378: ci: add clang-format check
1 parent 5ee9ccf commit 61933dc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: PR checks (clang-format)
2+
3+
on: pull_request
4+
5+
jobs:
6+
check:
7+
name: Run clang-format
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
ref: ${{ github.event.pull_request.head.sha }}
14+
- name: Run clang-format
15+
shell: bash
16+
run: git clang-format-16 --diff ${{ github.base_ref }}

0 commit comments

Comments
 (0)