From be552e9589369433655dabe649c9179f774d173d Mon Sep 17 00:00:00 2001 From: FMorschel <52160996+FMorschel@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:09:34 -0300 Subject: [PATCH] adding example folder to dart tests --- .hooks/pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.hooks/pre-commit b/.hooks/pre-commit index 9608916..e181987 100644 --- a/.hooks/pre-commit +++ b/.hooks/pre-commit @@ -40,8 +40,8 @@ EOF exit 1 fi -# Do dart checks only if ./lib or ./test directories were changed -if [ -z "$(git diff --cached --name-only --diff-filter=ACMRTUXB $against | grep -E '^(lib/|test/)')" ]; then +# Do dart checks only if ./lib, ./test or ./example directories were changed +if [ -z "$(git diff --cached --name-only --diff-filter=ACMRTUXB $against | grep -E '^(lib/|test/|example/)')" ]; then echo "No Dart files were changed. Skipping Dart checks." exit 0 fi