Skip to content

Commit

Permalink
ci: add optional testing of deno and bun
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Aug 7, 2024
1 parent 9dddec8 commit fe2896f
Showing 1 changed file with 38 additions and 25 deletions.
63 changes: 38 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ name: Test
on:
push:
workflow_dispatch:
inputs:
bun:
description: 'Test on bun'
required: true
default: false
type: boolean
deno:
description: 'Test on deno'
required: true
default: false
type: boolean

jobs:
testNode:
Expand Down Expand Up @@ -36,30 +47,32 @@ jobs:
run: npm run test:node

# Deno currently fails because of vitest incompatibility
# testDeno:
# name: 'Test: Deno'
# timeout-minutes: 15
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: denoland/setup-deno@v1
# with:
# deno-version: v1.x
# - name: Run tests
# run: npm run test:deno
testDeno:
name: 'Test: Deno'
if: always() && github.event.inputs.deno == 'true'
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Run tests
run: npm run test:deno

# Bun currently fails because of broken/missing TextDecoder
# testBun:
# name: 'Test: Bun'
# timeout-minutes: 15
# runs-on: ubuntu-latest
# continue-on-error: true
# steps:
# - uses: actions/checkout@v4
# - uses: oven-sh/setup-bun@v1
# with:
# bun-version: latest
# - name: Install Dependencies
# run: bun install --frozen-lockfile
# - name: Run tests
# run: npm run test:bun
testBun:
name: 'Test: Bun'
if: always() && github.event.inputs.bun == 'true'
timeout-minutes: 15
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install Dependencies
run: bun install --frozen-lockfile
- name: Run tests
run: npm run test:bun

0 comments on commit fe2896f

Please sign in to comment.