We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 060c40c commit 550ff71Copy full SHA for 550ff71
.github/actions/plugin/lint/action.yml
@@ -0,0 +1,22 @@
1
+name: clang-format check
2
+description: Checks formatting using clang-format
3
+
4
+inputs:
5
+ source-dir:
6
+ description: 'Root directory of the cpp project'
7
+ required: false
8
+ default: '.'
9
10
+runs:
11
+ using: composite
12
+ steps:
13
+ - name: Install clang-format
14
+ shell: bash
15
+ run: sudo apt-get install -y clang-format
16
17
+ - name: Run clang-format
18
19
+ run: |
20
+ find ${{ inputs.source-dir }}/src ${{ inputs.source-dir }}/tests \
21
+ -name '*.cpp' -o -name '*.h' | \
22
+ xargs clang-format --dry-run --Werror
0 commit comments