mirror of
https://github.com/expo/code-review-cli.git
synced 2026-11-15 13:08:14 -10:00
40 lines
730 B
YAML
40 lines
730 B
YAML
name: test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
|
|
|
- name: Set up Bun
|
|
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Lint
|
|
run: bun run lint
|
|
|
|
- name: Format check
|
|
run: bun run fmt:check
|
|
|
|
- name: Typecheck
|
|
run: bun run typecheck
|
|
|
|
- name: Build
|
|
run: bun run build
|
|
|
|
- name: Unit tests
|
|
run: bun test
|