-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (27 loc) · 881 Bytes
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Run code style tests
name: Code Style
on:
on:
pull_request:
branches: [main, master]
paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '*.pro']
push:
branches: [main, master]
paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '*.pro']
jobs:
clang-tidy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
ignore: "build|plugins|fft|qwt|ui_tmp|unit_test|pythonqt"
ignore-format: "build|plugins|fft|qwt|ui_tmp|unit_test|pythonqt"
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
- name: Failure
if: steps.linter.outputs.checks-failed > 0
run: exit 1