Skip to content

Runtime Tests

Runtime Tests #12

Workflow file for this run

name: Runtime Tests
on:
workflow_dispatch
jobs:
test-bun:
name: Test on Bun
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v2
- name: Scaffold App
run: |
npm create oak-bun@latest -- -y
bun install
- name: Perform Tests
run: bun test
test-nodejs:
name: Test on Node.js
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18.x", "20.x", "22.x"]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Scaffold App
run: |
npm create oak-nodejs-esbuild@latest -- -y
npm install
- name: Perform Tests
run: npm test
test-cloudflare-workers:
name: Test on Cloudflare Workers dev env
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18.x", "20.x", "22.x"]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Scaffold App
run: |
npm create oak-cloudflare-worker@latest -- -y
npm install
- name: Perform Tests
run: npm test
test-deno-with-npm-create:
name: Test on Deno using 'npm create'
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4 # needed to call the scaffolding `npm create` command
- name: Setup Deno
uses: denoland/setup-deno@v2 # needed to perform the actual tests
with:
deno-version: v2.x
- name: Scaffold App
run: npm create oak-deno@latest -- -y
- name: Perform Tests
run: deno task test
test-deno-with-deno-init:
name: Test on Deno using 'deno init'
runs-on: ubuntu-latest
steps:
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Scaffold App
run: deno run -A npm:create-oak-deno@latest -- -y
- name: Perform Tests
run: deno task test