Skip to content

chore: upgrade generators and run previews #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/preview-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,62 @@ jobs:
cd fern/apis/api/.preview/fern-go-sdk
go mod tidy
go build ./...


preview-csharp:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3

- name: Download Fern
run: npm install -g fern-api

- name: Preview C# SDK
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
fern generate --api api --group csharp-sdk --preview --log-level debug

- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Compile
run: |
cd fern/apis/api/.preview/fern-csharp-sdk/src
dotnet restore
dotnet build

preview-java:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3

- name: Download Fern
run: npm install -g fern-api

- name: Preview Java SDK
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
fern generate --api api --group java-sdk --preview --log-level debug

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Compile
run: |
cd fern/apis/api/.preview/fern-java-sdk
./gradlew build
23 changes: 6 additions & 17 deletions fern/apis/api/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ groups:
python-sdk:
generators:
- name: fernapi/fern-python-sdk
version: 4.21.4
version: 4.22.0
api:
settings:
unions: v1
Expand All @@ -28,7 +28,7 @@ groups:
ts-sdk:
generators:
- name: fernapi/fern-typescript-node-sdk
version: 0.51.3
version: 1.8.1
api:
settings:
unions: v1
Expand All @@ -40,17 +40,11 @@ groups:
repository: VapiAI/server-sdk-typescript
config:
namespaceExport: Vapi
allowCustomFetcher: true
skipResponseValidation: true
includeApiReference: true
noSerdeLayer: true
omitUndefined: true
smart-casing: true
java-sdk:
generators:
- name: fernapi/fern-java-sdk
version: 2.37.0
disable-examples: true
version: 2.37.2
output:
location: maven
coordinate: dev.vapi:server-sdk
Expand All @@ -63,20 +57,16 @@ groups:
go-sdk:
generators:
- name: fernapi/fern-go-sdk
version: 0.37.4
disable-examples: true
version: 1.2.0
api:
settings:
unions: v1
github:
repository: VapiAI/server-sdk-go
config:
union: v1
ruby-sdk:
generators:
- name: fernapi/fern-ruby-sdk
version: 0.9.0-rc2
disable-examples: true
version: 0.8.2
github:
repository: VapiAI/server-sdk-ruby
output:
Expand All @@ -88,8 +78,7 @@ groups:
csharp-sdk:
generators:
- name: fernapi/fern-csharp-sdk
version: 1.18.0
disable-examples: true
version: 2.0.0
github:
repository: VapiAI/server-sdk-csharp
output:
Expand Down
Loading