opencode-compatibility.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: OpenCode Compatibility
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '17 6 * * 1'
  6. permissions:
  7. contents: read
  8. concurrency:
  9. group: ${{ github.workflow }}-${{ github.ref }}
  10. cancel-in-progress: true
  11. jobs:
  12. host-smoke:
  13. name: Host ${{ matrix.channel }} / OpenCode ${{ matrix.opencode-version }}
  14. continue-on-error: ${{ matrix.experimental }}
  15. runs-on: ubuntu-latest
  16. timeout-minutes: 15
  17. strategy:
  18. fail-fast: false
  19. matrix:
  20. include:
  21. - channel: supported
  22. opencode-version: '1.18.13'
  23. experimental: false
  24. - channel: latest-canary
  25. opencode-version: latest
  26. experimental: true
  27. steps:
  28. - name: Checkout code
  29. uses: actions/checkout@v4
  30. - name: Setup Bun
  31. uses: oven-sh/setup-bun@v2
  32. - name: Install dependencies
  33. run: bun ci
  34. - name: Build
  35. run: bun run build
  36. - name: Verify OpenCode host compatibility
  37. env:
  38. OPENCODE_SMOKE_VERSION: ${{ matrix.opencode-version }}
  39. run: bun run verify:host-smoke