Skip to content

Commit e9d0ffd

Browse files
committed
ci: compliance: add clang-format check
Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 1a46b74 commit e9d0ffd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/compliance.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Compliance checks
33
on:
44
pull_request: {}
55

6+
env:
7+
CLANG_FORMAT_VERSION: "20.1"
8+
69
jobs:
710
lint:
811
runs-on: ubuntu-24.04
@@ -13,8 +16,11 @@ jobs:
1316
ref: ${{ github.event.pull_request.head.sha }}
1417
fetch-depth: 0
1518

16-
- name: Install GitLint
17-
run: pip install gitlint
19+
- name: Install dependencies
20+
run: pip install gitlint clang-format~=${CLANG_FORMAT_VERSION}
1821

1922
- name: Run GitLint
2023
run: gitlint --commits "${{ github.event.pull_request.base.sha }}..HEAD"
24+
25+
- name: Run clang-format
26+
run: git clang-format ${{ github.event.pull_request.base.sha }} --diff --verbose

0 commit comments

Comments
 (0)