Skip to content

feat: Cursor provider plugin for opencode (v0.1.0) #1

feat: Cursor provider plugin for opencode (v0.1.0)

feat: Cursor provider plugin for opencode (v0.1.0) #1

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
pull_request:
permissions:
contents: read
jobs:
build:
name: typecheck · test · build (node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ["22.x", "24.x"]
steps:
- uses: actions/checkout@v5
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Test
run: npm test
- name: Build
run: npm run build
integration:
name: e2e · opencode loads plugin & lists models
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Node
uses: actions/setup-node@v5
with:
node-version: "24.x"
cache: npm
- name: Install dependencies
run: npm ci
- name: Install opencode, load the plugin, and list Cursor models
run: bash scripts/integration-test.sh
env:
# Optional: when set, the script additionally verifies live auth and
# Cursor.models.list(). Without it, the fallback model path is tested.
CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }}