We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05d0264 commit f5e620bCopy full SHA for f5e620b
.github/workflows/clang-format-lint.yml
.github/workflows/clang-tidy.yml
.github/workflows/cpp-linter.yml
@@ -0,0 +1,26 @@
1
+name: cpp-linter
2
+
3
+on:
4
+ push: {}
5
+ pull_request: {}
6
7
+jobs:
8
+ job:
9
+ name: run-clang-tidy
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ fail-fast: false
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: cpp-linter/cpp-linter-action@v2
16
+ id: linter
17
+ with:
18
+ style: 'file'
19
+ tidy-checks: ''
20
+ extensions: 'c,h,cc'
21
+ - name: fail fast format
22
+ if: steps.linter.outputs.checks-failed > 0
23
+ run: exit 1
24
+ - name: fail fast tidy
25
+ if: steps.linter.outputs.clang-tidy-checks-failed > 0
26
0 commit comments