fix(tests): Add shebangs, set -e, and comprehensive checks to Ubuntu test scripts

- Rewrite test_latest.sh with real tests for NVM, Node.js, pnpm, Bun, Deno, and version switching
- Add #!/bin/bash shebang and set -e to test_stable.sh and test_npmci.sh
This commit is contained in:
2026-02-06 08:44:32 +00:00
parent 165712267c
commit 9aed8b7b40
3 changed files with 38 additions and 1 deletions

View File

@@ -1 +1,32 @@
echo "this runs within latest container!";
#!/bin/bash
set -e
echo "Testing latest image..."
# Test NVM
echo "Testing NVM..."
nvm --version
# Test Node.js
echo "Testing Node.js..."
node --version
# Test pnpm
echo "Testing pnpm..."
pnpm --version
# Test Bun
echo "Testing Bun..."
bun --version
# Test Deno
echo "Testing Deno..."
deno --version
# Test NVM version switching
echo "Testing NVM version switching..."
nvm install 22
nvm use 22
node --version | grep v22
echo "latest tests passed!"