Skip to content

chore: use bun for CI #79

chore: use bun for CI

chore: use bun for CI #79

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install bun
uses: oven-sh/setup-bun@v1
- name: Set node
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install
run: bun install
- name: Lint
run: bun run lint
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install bun
uses: oven-sh/setup-bun@v1
- name: Set node
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install
run: bun install
- name: Typecheck
run: bun run typecheck
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [lts/*]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install bun
uses: oven-sh/setup-bun@v1
- name: Set node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install
run: bun install
- name: Build
run: bun run build
- name: Test
run: bun run test