mirror of
https://github.com/uni-stack/uniwind.git
synced 2026-09-14 20:07:03 +08:00
54260e3f8d
* chore: typecheck tests * chore: add to ci
51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
name: Build and test library
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version-file: .bun-version
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Build library
|
|
run: bun run build
|
|
|
|
- name: Check types
|
|
run: bun run check:typescript
|
|
|
|
- name: Check test types
|
|
run: bun run check:typescript:test
|
|
working-directory: packages/uniwind
|
|
|
|
- name: Check linting
|
|
run: bun run lint
|
|
|
|
- name: Check formatting
|
|
run: bun run check:format
|
|
|
|
- name: Check circular dependencies
|
|
run: bun run circular:check
|
|
|
|
- name: Install Playwright browsers
|
|
run: bunx playwright install --with-deps chromium
|
|
working-directory: packages/uniwind
|
|
|
|
- name: Run tests
|
|
run: bun run test
|