From 9aed8b7b409c6645f0c1c9cd2542a2bd70f90fef Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Fri, 6 Feb 2026 08:44:32 +0000 Subject: [PATCH] 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 --- test/test_latest.sh | 33 ++++++++++++++++++++++++++++++++- test/test_npmci.sh | 3 +++ test/test_stable.sh | 3 +++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/test/test_latest.sh b/test/test_latest.sh index 897c5c4..a2fb18d 100644 --- a/test/test_latest.sh +++ b/test/test_latest.sh @@ -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!" diff --git a/test/test_npmci.sh b/test/test_npmci.sh index 7f53eb0..6e6d677 100644 --- a/test/test_npmci.sh +++ b/test/test_npmci.sh @@ -1,3 +1,6 @@ +#!/bin/bash +set -e + # check if npmci is available npm init -y npmci -v diff --git a/test/test_stable.sh b/test/test_stable.sh index 8d73ed1..6084e2c 100644 --- a/test/test_stable.sh +++ b/test/test_stable.sh @@ -1,3 +1,6 @@ +#!/bin/bash +set -e + # npm npm -v node -v