Skip to content

Commit

Permalink
adding example folder to dart tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FMorschel committed Nov 18, 2024
1 parent 1ce2060 commit be552e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be552e9

Please sign in to comment.