style: check tests format in the CI

This commit is contained in:
Mayeul@Zama
2022-03-09 17:40:02 +01:00
committed by mayeul-zama
parent a1e4329ca8
commit a94b6fcabe

View File

@@ -4,7 +4,7 @@ set -e -o pipefail
EXCLUDE_DIRS="-path ./compiler/include/boost-single-header -prune -o"
find ./compiler/{include,lib,src} $EXCLUDE_DIRS -iregex '^.*\.\(cpp\|cc\|h\|hpp\)$' -print | xargs clang-format -i -style='file'
find ./compiler/{include,lib,src,tests} $EXCLUDE_DIRS -iregex '^.*\.\(cpp\|cc\|h\|hpp\)$' -print | xargs clang-format -i -style='file'
# show changes if any
git --no-pager diff