Skip to content

Commit

Permalink
Run projects with the sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
lyubenkov committed Dec 21, 2023
1 parent 05a901b commit eb66daf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Change to the correct directory
cd /usr/src/app;
# Run hardhat tests
yarn test
. run.sh;
9 changes: 9 additions & 0 deletions docker/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Run tests for each package with a pause
for PACKAGE in $(lerna la -p --json | jq -r '.[].name'); do
echo "Running command for $PACKAGE"
lerna run test --scope="$PACKAGE"

sleep 1
done

0 comments on commit eb66daf

Please sign in to comment.