Skip to content

docs: clarify WebUI password setup #194

docs: clarify WebUI password setup

docs: clarify WebUI password setup #194

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
typecheck:
runs-on: ubuntu-latest
name: Typecheck
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14
- name: Install workspace dependencies
run: |
bun install --frozen-lockfile
bun install --cwd opencode --frozen-lockfile
bun install --cwd packages/nine1bot --frozen-lockfile
bun install --cwd web --frozen-lockfile
bun install --cwd packages/browser-extension --frozen-lockfile
- name: Typecheck upstream opencode (advisory)
# TODO: Fix TypeScript errors inherited from upstream opencode
# Many type errors exist in acp/, agent/, cli/cmd/ directories
# Temporarily allowing failure until these are resolved
run: bun run --cwd opencode typecheck
continue-on-error: true
- name: Typecheck maintained workspace
run: bun run ci:typecheck
- name: Test maintained workspace
run: bun run ci:test
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux
arch: x64
can_test: true
- os: ubuntu-latest
platform: linux
arch: arm64
can_test: false # Cross-compiled, cannot test on x64 runner
- os: macos-latest
platform: darwin
arch: arm64
can_test: true
- os: windows-latest
platform: windows
arch: x64
can_test: true
runs-on: ${{ matrix.os }}
name: Build (${{ matrix.platform }}-${{ matrix.arch }})
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies (opencode)
run: |
cd opencode
bun install --frozen-lockfile || bun install
- name: Install dependencies (nine1bot)
run: |
cd packages/nine1bot
bun install --frozen-lockfile || bun install
- name: Install dependencies (web)
run: |
cd web
bun install --frozen-lockfile || bun install
- name: Build web frontend
run: |
cd web
bun run build
- name: Install dependencies (browser-extension)
run: |
cd packages/browser-extension
bun install --frozen-lockfile || bun install
- name: Build browser extension
run: |
cd packages/browser-extension
bun run build
- name: Compile and package
shell: bash
run: |
chmod +x scripts/*.sh scripts/*.ts 2>/dev/null || true
bun run scripts/build.ts --platform=${{ matrix.platform }} --arch=${{ matrix.arch }}
./scripts/package.sh ${{ matrix.platform }} ${{ matrix.arch }}
- name: Test startup
if: matrix.can_test
shell: bash
timeout-minutes: 2
run: |
chmod +x scripts/test-startup.sh
./scripts/test-startup.sh ${{ matrix.platform }} ${{ matrix.arch }} dist/nine1bot-${{ matrix.platform }}-${{ matrix.arch }}