Stabilize live plugin validation #152
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/checkout@v7 | |
| with: | |
| repository: inkbox-ai/inkbox | |
| ref: 73f18a2b8c0e9dc6887c5663e6e904d54869927e | |
| path: .ci/inkbox | |
| - 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 --prefix .ci/inkbox/sdk/typescript | |
| npm run build --prefix .ci/inkbox/sdk/typescript | |
| bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" install --no-save --package-lock=false \ | |
| ./.ci/inkbox/sdk/typescript \ | |
| @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/checkout@v7 | |
| with: | |
| repository: inkbox-ai/inkbox | |
| ref: 73f18a2b8c0e9dc6887c5663e6e904d54869927e | |
| path: .ci/inkbox | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: | | |
| bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" ci --prefix .ci/inkbox/sdk/typescript | |
| npm run build --prefix .ci/inkbox/sdk/typescript | |
| bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" install --no-save --package-lock=false \ | |
| ./.ci/inkbox/sdk/typescript \ | |
| @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 \ | |
| ./.ci/inkbox/sdk/typescript \ | |
| @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/checkout@v7 | |
| with: | |
| repository: inkbox-ai/inkbox | |
| ref: 73f18a2b8c0e9dc6887c5663e6e904d54869927e | |
| path: .ci/inkbox | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: | | |
| bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" ci --prefix .ci/inkbox/sdk/typescript | |
| npm run build --prefix .ci/inkbox/sdk/typescript | |
| bash "$GITHUB_WORKSPACE/tests/ci/npm_with_retry.sh" install --no-save --package-lock=false \ | |
| ./.ci/inkbox/sdk/typescript \ | |
| @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: INKBOX_SDK_PATH="$PWD/.ci/inkbox/sdk/typescript" bash scripts/smoke-loader.sh |