From 2b1c606e1d4e64a71cca29b121d21f5b89bc173a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Tue, 8 Jul 2025 22:33:28 +0200 Subject: [PATCH] ci: verify registry usage --- .github/workflows/test.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) 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