mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
feat: add conditional test running to pre-push hook (#9055)
This commit is contained in:
parent
e86acef844
commit
3eee340aa3
1 changed files with 10 additions and 0 deletions
|
|
@ -18,6 +18,16 @@ fi
|
|||
|
||||
$pnpm_cmd run check-types
|
||||
|
||||
# Load .env.local if it exists
|
||||
if [ -f ".env.local" ]; then
|
||||
export $(grep -v '^#' .env.local | xargs)
|
||||
fi
|
||||
|
||||
# Run tests if RUN_TESTS_ON_PUSH is set to true
|
||||
if [ "$RUN_TESTS_ON_PUSH" = "true" ]; then
|
||||
$pnpm_cmd run test
|
||||
fi
|
||||
|
||||
# Check for new changesets.
|
||||
NEW_CHANGESETS=$(find .changeset -name "*.md" ! -name "README.md" | wc -l | tr -d ' ')
|
||||
echo "Changeset files: $NEW_CHANGESETS"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue