Skip to content

Support 16 kHz voice and repair recurring CI failures (#30) #183

Support 16 kHz voice and repair recurring CI failures (#30)

Support 16 kHz voice and repair recurring CI failures (#30) #183

Workflow file for this run

name: PR checks — typecheck · unit · contract
on:
push:
branches: [main]
pull_request:
jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- run: |
bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" ci
bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" install --no-save --package-lock=false \
@inkbox/sdk@0.5.9 \
@opencode-ai/sdk@1.17.18 @opencode-ai/plugin@1.17.18
- run: npm run lint
- run: npm run typecheck
- run: npm test
- run: python3 -m unittest tests/live/test_a2a_preflight.py
- run: npm run build
# Same contract suite canary runs on a schedule, but here it gates PRs so a
# host bump that breaks the plugin interface is visible at review time.
contract-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- run: |
bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" ci
bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" install --no-save --package-lock=false \
@inkbox/sdk@0.5.9 \
@opencode-ai/sdk@1.17.18 @opencode-ai/plugin@1.17.18
- run: |
bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" install --no-save --package-lock=false \
@inkbox/sdk@0.5.9 \
@opencode-ai/sdk@latest @opencode-ai/plugin@latest
- run: npm run typecheck
- run: npx vitest run tests/contract
loader-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- run: |
bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" ci
bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" install --no-save --package-lock=false \
@inkbox/sdk@0.5.9 \
@opencode-ai/sdk@1.17.18 @opencode-ai/plugin@1.17.18
- run: bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" install -g opencode-ai@latest
- run: bash scripts/smoke-loader.sh