Skip to content

Commit 9364c8b

Browse files
ci: add bun to preview E2E runners
Co-authored-by: ryoppippi <[email protected]>
1 parent d755584 commit 9364c8b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ jobs:
345345
runner:
346346
- npm
347347
- pnpm
348+
- bun
348349

349350
steps:
350351
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
@@ -354,6 +355,10 @@ jobs:
354355
if: matrix.runner == 'pnpm'
355356
with:
356357
version: latest
358+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
359+
if: matrix.runner == 'bun'
360+
with:
361+
bun-version: latest
357362
- name: Download E2E fixture
358363
shell: pwsh
359364
env:
@@ -413,6 +418,8 @@ jobs:
413418
switch ($env:RUNNER_KIND) {
414419
'npm' { return (npx --yes $url @ccArgs) }
415420
'pnpm' { return (pnpm dlx $url @ccArgs) }
421+
# bunx rejects a bare URL as the package, so name the binary.
422+
'bun' { return (bunx --package $url ccusage @ccArgs) }
416423
}
417424
}
418425
Invoke-Ccusage @('--version') | Out-Host

0 commit comments

Comments
 (0)