diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 0d1ec28a..106725f4 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -2,4 +2,4 @@ # Change to the correct directory cd /usr/src/app; # Run hardhat tests -yarn test \ No newline at end of file +. run.sh; \ No newline at end of file diff --git a/docker/run.sh b/docker/run.sh new file mode 100755 index 00000000..70149e57 --- /dev/null +++ b/docker/run.sh @@ -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 \ No newline at end of file