mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
ci: verify registry usage
This commit is contained in:
parent
bd97ab10d3
commit
2b1c606e1d
1 changed files with 18 additions and 3 deletions
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
|
@ -196,9 +196,24 @@ jobs:
|
||||||
|
|
||||||
- name: Install from default registry
|
- name: Install from default registry
|
||||||
run: |
|
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
|
- name: Install from @types registry
|
||||||
id: run_bun
|
|
||||||
run: |
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue