Skip to content

CI

CI #142

Workflow file for this run

name: CI
on:
- push
- pull_request
permissions:
contents: read
jobs:
test-node:
name: Node.js (${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- "16"
- "latest"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.2.0"
- run: bun install
- run: bun run test # runs tests with Vitest
- uses: codecov/codecov-action@v5
with:
name: Node.js (${{ matrix.node-version }})
test-bun:
name: Bun (${{ matrix.bun-version }})
runs-on: ubuntu-latest
strategy:
matrix:
bun-version:
- "1.2.0"
- "latest"
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.bun-version }}
- run: bun install
- run: bun run test:bun # runs tests with Bun
- uses: codecov/codecov-action@v5
with:
name: Bun (${{ matrix.bun-version }})