diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8320b23..40ee532 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -196,9 +196,24 @@ jobs: - name: Install from default registry run: | - bun add is-odd --verbose --force + output=$(bun add is-odd --verbose --force 2>&1) + echo "$output" + + if echo "$output" | grep -q "HTTP/1.1 GET https://registry.npmjs.org/is-odd"; then + echo "Successfully installed from default registry" + else + echo "Failed to install from default registry" + exit 1 + fi - name: Install from @types registry - id: run_bun run: | - bun add @types/bun --verbose --force + output=$(bun add @types/bun --verbose --force) + echo "$output" + + if echo "$output" | grep -q "HTTP/1.1 GET https://registry.yarnpkg.com/@types/bun"; then + echo "Successfully installed from @types registry" + else + echo "Failed to install from @types registry" + exit 1 + fi