Skip to content

Commit

Permalink
ci: jsr registry test
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Dec 12, 2024
1 parent b7b1fb7 commit ac0de85
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,13 @@ jobs:
run: |
bun --version
<<<<<<< HEAD
setup-bun-registry:
name: setup-bun registry (${{ matrix.os }})
=======
setup-bun-jsr-registry:
name: setup-bun jsr registry (${{ matrix.os }})
>>>>>>> 9de686f (ci: jsr registry test)
runs-on: ${{ matrix.os }}
continue-on-error: true
needs: [remove-cache, tests]
Expand All @@ -191,13 +196,22 @@ jobs:
registries: |
[
{
<<<<<<< HEAD
"url": "https://username:[email protected]/",
"scope": "@myorg"
=======
"url": "https://npm.jsr.io"
"scope": "@jsr"
>>>>>>> 9de686f (ci: jsr registry test)
}
]

- name: Run Bun
id: run_bun
run: |
<<<<<<< HEAD
bun --version
bun add @myorg/example
=======
bun add @luca/runtime-detector
>>>>>>> 9de686f (ci: jsr registry test)
8 changes: 7 additions & 1 deletion tests/bunfig.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe("writeBunfig", () => {
const expectedContents = [
"[install.scopes]",
'\'@foo-bar\' = { url = "https://npm.pkg.github.com/", token = "$BUN_AUTH_TOKEN" }',
<<<<<<< HEAD
"",
];

Expand All @@ -61,6 +62,8 @@ describe("writeBunfig", () => {
const expectedContents = [
"[install]",
'registry = "https://npm.pkg.github.com/"',
=======
>>>>>>> 9de686f (ci: jsr registry test)
"",
];

Expand Down Expand Up @@ -194,6 +197,7 @@ describe("writeBunfig", () => {
"",
"[install.scopes]",
'\'@foo-bar\' = { url = "https://npm.pkg.github.com/", token = "$BUN_AUTH_TOKEN" }',
<<<<<<< HEAD
'\'@bla-ble\' = { token = "$BUN_AUTH_TOKEN", url = "https://npm.pkg.github.com/" }',
"",
"[install.cache]",
Expand Down Expand Up @@ -237,6 +241,8 @@ describe("writeBunfig", () => {
"",
"[install.scopes]",
'\'@foo-bar\' = { url = "https://npm.pkg.github.com/", token = "$BUN_AUTH_TOKEN" }',
=======
>>>>>>> 9de686f (ci: jsr registry test)
'\'@bla-ble\' = { token = "$BUN_AUTH_TOKEN", url = "https://npm.pkg.github.com/" }',
"",
"[install.cache]",
Expand Down Expand Up @@ -279,7 +285,7 @@ describe("writeBunfig", () => {
"optional = true",
"",
"[install.scopes]",
'\'@foo-bar\' = { token = "$BUN_AUTH_TOKEN", url = "https://npm.pkg.github.com/" }',
'\'@foo-bar\' = { url = "https://npm.pkg.github.com/", token = "$BUN_AUTH_TOKEN" }',
'\'@bla-ble\' = { token = "$BUN_AUTH_TOKEN", url = "https://npm.pkg.github.com/" }',
"",
"[install.cache]",
Expand Down

0 comments on commit ac0de85

Please sign in to comment.