Skip to content

Commit 57e797f

Browse files
committed
prefer node:test
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent 57f4662 commit 57e797f

18 files changed

Lines changed: 1420 additions & 1917 deletions

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,21 @@ jobs:
5151
with:
5252
version: type=image,version=${{ matrix.engine }}
5353

54-
- name: Test
54+
- name: Test (Node)
5555
run: |
5656
npm test
5757
env:
5858
DOCKER_HOST: ${{ steps.engine.outputs.sock }}
5959

60+
- name: Set up BunJS
61+
uses: oven-sh/setup-bun@v2
62+
63+
- name: Test (Bun)
64+
run: |
65+
bun install
66+
bun --bun test test/*.test.ts
67+
env:
68+
DOCKER_HOST: ${{ steps.engine.outputs.sock }}
6069
build:
6170
runs-on: ubuntu-latest
6271
steps:

bun.lock

Lines changed: 624 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/socket.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,12 @@ export class SocketAgent extends Agent {
2323
},
2424
});
2525
}
26+
27+
override close(): Promise<void> {
28+
if (typeof super.close === 'function') {
29+
// see https://github.com/oven-sh/bun/issues/14498
30+
return super.close();
31+
}
32+
return Promise.resolve();
33+
}
2634
}

0 commit comments

Comments
 (0)