-
Notifications
You must be signed in to change notification settings - Fork 100
44 lines (44 loc) · 1.25 KB
/
Copy pathcpp-linter.yml
File metadata and controls
44 lines (44 loc) · 1.25 KB
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
34
35
36
37
38
39
40
41
42
43
44
name: cpp-linter
on:
push:
branches: [ "main" ]
paths:
- 'Sources/CSFBAudioEngine/**/*.h'
- 'Sources/CSFBAudioEngine/**/*.hpp'
- 'Sources/CSFBAudioEngine/**/*.c'
- 'Sources/CSFBAudioEngine/**/*.cpp'
- 'Sources/CSFBAudioEngine/**/*.m'
- 'Sources/CSFBAudioEngine/**/*.mm'
pull_request:
branches: [ "main" ]
paths:
- 'Sources/CSFBAudioEngine/**/*.h'
- 'Sources/CSFBAudioEngine/**/*.hpp'
- 'Sources/CSFBAudioEngine/**/*.c'
- 'Sources/CSFBAudioEngine/**/*.cpp'
- 'Sources/CSFBAudioEngine/**/*.m'
- 'Sources/CSFBAudioEngine/**/*.mm'
permissions:
contents: read
pull-requests: write
jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: cpp-linter
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: 'file'
tidy-checks: '-*'
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
format-review: true
extensions: 'h,hpp,c,cpp,m,mm'
version: 22
- name: Fail fast?!
if: steps.linter.outputs.checks-failed > 0
run: exit 1