Skip to content

Commit f5e620b

Browse files
committed
let's try an all-in-one solution
1 parent 05d0264 commit f5e620b

File tree

3 files changed

+26
-56
lines changed

3 files changed

+26
-56
lines changed

.github/workflows/clang-format-lint.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/clang-tidy.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/cpp-linter.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
run: exit 1

0 commit comments

Comments
 (0)