Skip to content

chore: initialize version to 0.0.1 and add release workflow #2

chore: initialize version to 0.0.1 and add release workflow

chore: initialize version to 0.0.1 and add release workflow #2

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: bun install
- name: Run typecheck
run: bun run typecheck
- name: Run tests
run: bun run test
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Verify build artifacts
run: |
test -f dist/index.js
test -f dist/server.js
test -f dist/web-server.js
test -f dist/index.d.ts