debugging tests

This commit is contained in:
tcely 2026-03-14 20:31:48 -04:00
parent 5018e2b092
commit 86bb306ee9
No known key found for this signature in database
GPG Key ID: 9F1DAF9D9070430F

View File

@ -287,24 +287,35 @@ jobs:
https://registry.npmjs.org https://registry.npmjs.org
@types:https://registry.yarnpkg.com @types:https://registry.yarnpkg.com
- name: ▶️ Install from default registry - name: 🔎 Display registry configurations
run: | run: cat -v bunfig.toml
output=$(bun add is-odd --verbose --force 2>&1)
if echo "$output" | grep -q "HTTP/1.1 GET https://registry.npmjs.org/is-odd"; then - name: ▶️ Install from default registry
shell: bash
run: |
status=0
output=$(bun add is-odd --verbose --force 2>&1) || status=$?
if [ 0 -eq "${status}" ] && grep <<<"$output" -q "HTTP/1.1 GET https://registry.npmjs.org/is-odd"; then
echo "Successfully installed from default registry" echo "Successfully installed from default registry"
else else
echo "${output}"
echo "Return code: ${status}"
echo "Failed to install from default registry" echo "Failed to install from default registry"
exit 1 exit 1
fi fi
- name: ▶️ Install from @types registry - name: ▶️ Install from @types registry
shell: bash
run: | run: |
output=$(bun add @types/bun --verbose --force 2>&1) status=0
output=$(bun add @types/bun --verbose --force 2>&1) || status=$?
if echo "$output" | grep -q "HTTP/1.1 GET https://registry.yarnpkg.com/@types%2fbun"; then if [ 0 -eq "${status}" ] && grep <<<"$output" -q "HTTP/1.1 GET https://registry.yarnpkg.com/@types%2fbun"; then
echo "Successfully installed from @types registry" echo "Successfully installed from @types registry"
else else
echo "${output}"
echo "Return code: ${status}"
echo "Failed to install from @types registry" echo "Failed to install from @types registry"
exit 1 exit 1
fi fi