Skip to content

Fix inline slash AI prompt flow #1056

Fix inline slash AI prompt flow

Fix inline slash AI prompt flow #1056

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
- master
jobs:
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Stub opencode server bundle for CI
run: |
mkdir -p thirdparty/opencode/packages/opencode/dist/node
cat > thirdparty/opencode/packages/opencode/dist/node/node.js << 'STUB'
export const Log = { init: async () => {} };
export const Server = { listen: async () => ({ url: new URL("http://localhost:0"), stop: () => {} }) };
STUB
- name: Typecheck + build
run: npm run build
- name: Unit tests
run: npm run test:run
rust-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: server
- name: Format (server)
working-directory: server
run: cargo fmt --check
- name: Clippy (server)
working-directory: server
run: cargo clippy -- -D warnings
- name: Tests (server)
working-directory: server
run: cargo test