Skip to content

Commit 6171c9d

Browse files
Riksu9000NeroBurner
authored andcommitted
Only test format when it is wanted
1 parent a6fcdec commit 6171c9d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/format.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Code formatting
33
on:
44
pull_request:
55
branches: [ master, develop ]
6+
paths:
7+
- '**.cpp'
8+
- '**.h'
9+
- '!src/libs/**'
610

711
jobs:
812
test-format:

tests/test-format.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ for file in $CHANGED_FILES
1616
do
1717
[ -e "$file" ] || continue
1818
case "$file" in
19+
src/libs/*) continue ;;
1920
*.cpp|*.h)
2021
echo Checking "$file"
2122
clang-format -i "$file"

0 commit comments

Comments
 (0)