diff options
Diffstat (limited to 'bin/test')
| -rwxr-xr-x | bin/test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/test b/bin/test new file mode 100755 index 0000000..61b31ce --- /dev/null +++ b/bin/test @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +PROJECT_DIR="$(dirname "$SCRIPT_DIR")" + +# Run the test suite inside the API container +# Uses the api service since it has access to the full workspace +sudo docker compose -f "$PROJECT_DIR/docker-compose.yml" \ + run --rm api bun run test "$@" |
