Skip to content

ci: add CI workflow with lint, type check, and knip #1

ci: add CI workflow with lint, type check, and knip

ci: add CI workflow with lint, type check, and knip #1

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
check:
name: Lint & Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Lint
run: bun check
- name: Type check
run: bunx tsc --noEmit
- name: Knip
run: bun knip
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Test
run: bun test