mirror of
https://github.com/anomalyco/opencode-sdk-go.git
synced 2026-04-28 12:39:53 +00:00
feat(api): update via SDK Studio
This commit is contained in:
parent
35b4e8b25c
commit
9b7883a144
61 changed files with 10282 additions and 1 deletions
47
.github/workflows/ci.yml
vendored
Normal file
47
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'generated'
|
||||
- 'codegen/**'
|
||||
- 'integrated/**'
|
||||
- 'stl-preview-head/**'
|
||||
- 'stl-preview-base/**'
|
||||
pull_request:
|
||||
branches-ignore:
|
||||
- 'stl-preview-head/**'
|
||||
- 'stl-preview-base/**'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
timeout-minutes: 10
|
||||
name: lint
|
||||
runs-on: ${{ github.repository == 'stainless-sdks/opencode-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: ./go.mod
|
||||
|
||||
- name: Run lints
|
||||
run: ./scripts/lint
|
||||
test:
|
||||
timeout-minutes: 10
|
||||
name: test
|
||||
runs-on: ${{ github.repository == 'stainless-sdks/opencode-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: ./go.mod
|
||||
|
||||
- name: Bootstrap
|
||||
run: ./scripts/bootstrap
|
||||
|
||||
- name: Run tests
|
||||
run: ./scripts/test
|
||||
28
.github/workflows/create-releases.yml
vendored
Normal file
28
.github/workflows/create-releases.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: Create releases
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 5 * * *' # every day at 5am UTC
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: release
|
||||
if: github.ref == 'refs/heads/main' && github.repository == 'sst/opencode-sdk-go'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: stainless-api/trigger-release-please@v1
|
||||
id: release
|
||||
with:
|
||||
repo: ${{ github.event.repository.full_name }}
|
||||
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
|
||||
|
||||
- name: Generate godocs
|
||||
if: ${{ steps.release.outputs.releases_created }}
|
||||
run: |
|
||||
version=$(jq -r '. | to_entries[0] | .value' .release-please-manifest.json)
|
||||
curl -X POST https://pkg.go.dev/fetch/github.com/sst/opencode-sdk-go@v${version}
|
||||
Loading…
Add table
Add a link
Reference in a new issue