File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
2
workflow_call :
3
+ push :
4
+ paths :
5
+ - ' **/*.cpp'
6
+ - ' **/*.hpp'
7
+ - ' **/*.c'
8
+ - ' **/*.h'
9
+ - ' **/*.py'
10
+ - ' **/*.sh'
11
+ - ' .clang-format'
12
+ - ' setup.cfg'
13
+ - ' .github/workflows/lint.yml'
14
+ pull_request :
15
+ paths :
16
+ - ' **/*.cpp'
17
+ - ' **/*.hpp'
18
+ - ' **/*.c'
19
+ - ' **/*.h'
20
+ - ' **/*.py'
21
+ - ' **/*.sh'
22
+ - ' .clang-format'
23
+ - ' setup.cfg'
24
+ - ' .github/workflows/lint.yml'
3
25
4
26
jobs :
5
27
clang-format :
Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ name: Pre-commit checks
2
2
3
3
on :
4
4
pull_request :
5
+ paths-ignore :
6
+ - ' docs/**'
7
+ - ' *.md'
8
+ - ' *.rst'
9
+ - ' *.txt'
10
+ - ' LICENSE'
5
11
6
12
jobs :
7
13
pre-commit :
Original file line number Diff line number Diff line change 1
1
name : Static analysis
2
2
3
- on : [pull_request]
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - ' **/*.cpp'
7
+ - ' **/*.hpp'
8
+ - ' **/*.c'
9
+ - ' **/*.h'
10
+ - ' **/CMakeLists.txt'
11
+ - ' **/*.cmake'
12
+ - ' .github/workflows/static-analysis-pr.yml'
4
13
5
14
concurrency :
6
15
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
You can’t perform that action at this time.
0 commit comments