Skip to content

Commit cd00f74

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

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
@@ -343,6 +343,7 @@ jobs:
343343
runner:
344344
- npm
345345
- pnpm
346+
- bun
346347

347348
steps:
348349
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
@@ -352,6 +353,10 @@ jobs:
352353
if: matrix.runner == 'pnpm'
353354
with:
354355
version: latest
356+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
357+
if: matrix.runner == 'bun'
358+
with:
359+
bun-version: latest
355360
- name: Download E2E fixture
356361
shell: pwsh
357362
env:
@@ -411,6 +416,8 @@ jobs:
411416
switch ($env:RUNNER_KIND) {
412417
'npm' { return (npx --yes $url @ccArgs) }
413418
'pnpm' { return (pnpm dlx $url @ccArgs) }
419+
# bunx rejects a bare URL as the package, so name the binary.
420+
'bun' { return (bunx --package $url ccusage @ccArgs) }
414421
}
415422
}
416423
Invoke-Ccusage @('--version') | Out-Host

0 commit comments

Comments
 (0)