Skip to content

Commit

Permalink
test(script): run all test if exist
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingandyyy committed Jun 24, 2024
1 parent 008fa62 commit 8ac936f
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
9 changes: 7 additions & 2 deletions script/test
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@

REPO_DIR="$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)")"

"$REPO_DIR/hooks/outputs-in-outputs-files/test"
"$REPO_DIR/hooks/vars-in-variables-files/test"
# Find all files in the hooks directory and its subdirectories
find "$REPO_DIR/hooks" -type f | while read -r file; do
# If the file is a test script, execute it
if [[ "$file" == *"/test" ]]; then
"$file"
fi
done

0 comments on commit 8ac936f

Please sign in to comment.