Skip to content

chore(deps): consolidate GitHub Actions dependency updates #133

chore(deps): consolidate GitHub Actions dependency updates

chore(deps): consolidate GitHub Actions dependency updates #133

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@v7
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Verify lockfile uses only the public npm registry
run: |
if grep -E '"resolved":[[:space:]]*"https?://' package-lock.json | grep -vq 'https://registry.npmjs.org/'; then
echo "::error::package-lock.json contains non-npmjs resolved URLs:"
grep -nE '"resolved":[[:space:]]*"https?://' package-lock.json | grep -v 'https://registry.npmjs.org/' || true
exit 1
fi
- 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@v7
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: "24.x"
cache: npm
- name: Verify lockfile uses only the public npm registry
run: |
if grep -E '"resolved":[[:space:]]*"https?://' package-lock.json | grep -vq 'https://registry.npmjs.org/'; then
echo "::error::package-lock.json contains non-npmjs resolved URLs:"
grep -nE '"resolved":[[:space:]]*"https?://' package-lock.json | grep -v 'https://registry.npmjs.org/' || true
exit 1
fi
- 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 }}