Skip to content

Commit fe2896f

Browse files
committed
ci: add optional testing of deno and bun
1 parent 9dddec8 commit fe2896f

File tree

1 file changed

+38
-25
lines changed

1 file changed

+38
-25
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ name: Test
22
on:
33
push:
44
workflow_dispatch:
5+
inputs:
6+
bun:
7+
description: 'Test on bun'
8+
required: true
9+
default: false
10+
type: boolean
11+
deno:
12+
description: 'Test on deno'
13+
required: true
14+
default: false
15+
type: boolean
516

617
jobs:
718
testNode:
@@ -36,30 +47,32 @@ jobs:
3647
run: npm run test:node
3748

3849
# Deno currently fails because of vitest incompatibility
39-
# testDeno:
40-
# name: 'Test: Deno'
41-
# timeout-minutes: 15
42-
# runs-on: ubuntu-latest
43-
# steps:
44-
# - uses: actions/checkout@v4
45-
# - uses: denoland/setup-deno@v1
46-
# with:
47-
# deno-version: v1.x
48-
# - name: Run tests
49-
# run: npm run test:deno
50+
testDeno:
51+
name: 'Test: Deno'
52+
if: always() && github.event.inputs.deno == 'true'
53+
timeout-minutes: 15
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v4
57+
- uses: denoland/setup-deno@v1
58+
with:
59+
deno-version: v1.x
60+
- name: Run tests
61+
run: npm run test:deno
5062

5163
# Bun currently fails because of broken/missing TextDecoder
52-
# testBun:
53-
# name: 'Test: Bun'
54-
# timeout-minutes: 15
55-
# runs-on: ubuntu-latest
56-
# continue-on-error: true
57-
# steps:
58-
# - uses: actions/checkout@v4
59-
# - uses: oven-sh/setup-bun@v1
60-
# with:
61-
# bun-version: latest
62-
# - name: Install Dependencies
63-
# run: bun install --frozen-lockfile
64-
# - name: Run tests
65-
# run: npm run test:bun
64+
testBun:
65+
name: 'Test: Bun'
66+
if: always() && github.event.inputs.bun == 'true'
67+
timeout-minutes: 15
68+
runs-on: ubuntu-latest
69+
continue-on-error: true
70+
steps:
71+
- uses: actions/checkout@v4
72+
- uses: oven-sh/setup-bun@v1
73+
with:
74+
bun-version: latest
75+
- name: Install Dependencies
76+
run: bun install --frozen-lockfile
77+
- name: Run tests
78+
run: npm run test:bun

0 commit comments

Comments
 (0)