Skip to content

feat: support Node.js as output #1403

feat: support Node.js as output

feat: support Node.js as output #1403

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
setup:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
# Useful to test Node.js runtime is working fine on some tests
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
# Bun setup, used for almost everything inside the project
- name: Setup Bun.js
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.26
- name: Install dependencies
run: bun install
- name: Build project
run: bun run build
test-bun:
needs: setup
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Bun setup
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.26
- name: Run Bun tests
run: bun test
test-node:
needs: setup
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
- name: Run Node.js tests
run: npm run test:node