f93c06b06323c4f11c48130e4e9975c9345dbbc3 diff --git a/scripts/p620/deploy-tdd-md.sh b/scripts/p620/deploy-tdd-md.sh index e1394403b3a354fd4297fec0a91f22b28b62561a..d006726fc3385401bca8bebf65311cdf69354741 100755 --- a/scripts/p620/deploy-tdd-md.sh +++ b/scripts/p620/deploy-tdd-md.sh @@ -157,6 +157,13 @@ if [[ "$MODE" == "git" ]]; then ssh "$SSH_HOST" "podman run --rm -v \$HOME/$REMOTE_SRC_DIR:/work:Z --workdir /work $IMAGE_TAG bun scripts/p620/snapshot-git-history.ts" \ || { echo "✗ snapshot-git-history failed"; exit 1; } + echo "→ snapshot tests via podman run → content/git-history/" + # bun test needs node_modules; the image bakes them at /app/node_modules. + # Symlink them into /work so the script's bun test resolves marked, + # node-html-parser, etc. without re-installing per deploy. + ssh "$SSH_HOST" "podman run --rm -v \$HOME/$REMOTE_SRC_DIR:/work:Z --workdir /work --entrypoint sh $IMAGE_TAG -c 'ln -sfn /app/node_modules node_modules && bun scripts/p620/snapshot-tests.ts'" \ + || { echo "✗ snapshot-tests failed"; exit 1; } + echo "→ bundle sama CLI via podman run → public/sama-cli" ssh "$SSH_HOST" "podman run --rm -v \$HOME/$REMOTE_SRC_DIR:/work:Z --workdir /work --entrypoint sh $IMAGE_TAG -c 'bun build scripts/sama-cli.ts --target=bun --outfile=public/sama-cli >/dev/null && chmod +x public/sama-cli'" \ || { echo "✗ sama-cli bundle failed"; exit 1; }