fix(agents): talk to opencode over the v1 session endpoints #1023
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| smoke: | |
| name: Smoke (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| env: | |
| DEVSPACE_OAUTH_OWNER_TOKEN: ci-owner-token-that-is-long-enough | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm and Node | |
| uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 | |
| with: | |
| runtime: node@22 | |
| cache: true | |
| install: false | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Pi sandbox dependencies | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ripgrep bubblewrap socat | |
| if sysctl kernel.apparmor_restrict_unprivileged_userns >/dev/null 2>&1; then | |
| sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 | |
| fi | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| - name: Test | |
| env: | |
| DEVSPACE_REQUIRE_PI_SANDBOX: ${{ matrix.os == 'ubuntu-latest' && '1' || '0' }} | |
| run: pnpm test | |
| - name: Package install smoke test | |
| run: pnpm test:package-install | |
| - name: Doctor | |
| run: node dist/cli.js doctor |