mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-13 15:46:22 +00:00
* fix: biome lint issues * fix: code quality workflow * fix: all lint issues * chore: test lefthook pre-commit hook * chore: test lefthook with agent file * chore: revert test comment from lefthook verification * feat: setup tsgo for typechecking agent * fix: typecheck cli command * fix: early return to prevent errors
61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
name: Code Quality
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "packages/browseros-agent/**"
|
|
|
|
jobs:
|
|
biome:
|
|
name: runner / Biome
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: packages/browseros-agent
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Biome
|
|
uses: biomejs/setup-biome@v2
|
|
with:
|
|
version: latest
|
|
|
|
- name: Run Biome
|
|
run: biome ci .
|
|
|
|
typecheck:
|
|
name: runner / Typecheck
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: packages/browseros-agent
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Install dependencies
|
|
run: bun ci
|
|
|
|
- name: Prepare wxt
|
|
run: VITE_PUBLIC_BROWSEROS_API=http://localhost:3000 bun run --cwd apps/agent wxt prepare
|
|
|
|
- name: Run codegen
|
|
run: bun run --cwd apps/agent codegen
|
|
|
|
- name: Run Typecheck
|
|
run: bun run typecheck
|