ci: show diff when clang-format check fails
Signed-off-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23258>
This commit is contained in:

committed by
Marge Bot

parent
648b5f3070
commit
480204aeed
@@ -42,9 +42,10 @@ clang-format:
|
||||
LLVM_VERSION: 15
|
||||
script:
|
||||
- shopt -s globstar
|
||||
- clang-format-${LLVM_VERSION:?} --Werror --dry-run
|
||||
- clang-format-${LLVM_VERSION:?} --Werror -i
|
||||
src/**/asahi/**/*.{h,c,cpp}
|
||||
src/**/panfrost/**/*.{h,c,cpp}
|
||||
- git diff --exit-code # Fails if there are diffs
|
||||
|
||||
.test-gl:
|
||||
extends:
|
||||
|
Reference in New Issue
Block a user