We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a46b74 commit e9d0ffdCopy full SHA for e9d0ffd
.github/workflows/compliance.yml
@@ -3,6 +3,9 @@ name: Compliance checks
3
on:
4
pull_request: {}
5
6
+env:
7
+ CLANG_FORMAT_VERSION: "20.1"
8
+
9
jobs:
10
lint:
11
runs-on: ubuntu-24.04
@@ -13,8 +16,11 @@ jobs:
13
16
ref: ${{ github.event.pull_request.head.sha }}
14
17
fetch-depth: 0
15
18
- - name: Install GitLint
- run: pip install gitlint
19
+ - name: Install dependencies
20
+ run: pip install gitlint clang-format~=${CLANG_FORMAT_VERSION}
21
22
- name: Run GitLint
23
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