Skip to content
Merged
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
19 changes: 13 additions & 6 deletions .github/actions/validate-sdk/action.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think we should use pnpm + pnpm dlx for these actions still, unless we think there's no gain using pnpm -- at that point I'd want to move all to npm

Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ runs:
working-directory: examples
run: npm install

- name: Typecheck examples root
shell: bash
working-directory: examples
run: npx tsc --noEmit --skipLibCheck --esModuleInterop --moduleResolution node --module esnext --target es2020 *.ts
# TODO: Re-enable when Speakeasy fixes generated code type errors
# - name: Typecheck examples root
# shell: bash
# working-directory: examples
# run: npx tsc

- name: Install nextjs-example dependencies
shell: bash
Expand All @@ -47,8 +48,14 @@ runs:
working-directory: examples/nextjs-example
run: npx tsc --noEmit

- name: Run tests
- name: Run unit tests
shell: bash
env:
OPENROUTER_API_KEY: ${{ inputs.openrouter-api-key }}
run: npx vitest --run --exclude 'tests/e2e/**'

- name: Run e2e tests
shell: bash
env:
OPENROUTER_API_KEY: ${{ inputs.openrouter-api-key }}
run: npx vitest --run
run: npx vitest --run tests/e2e/
4 changes: 2 additions & 2 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ management:
docVersion: 1.0.0
speakeasyVersion: 1.659.0
generationVersion: 2.755.9
releaseVersion: 0.1.18
configChecksum: ad5a220c1110e01ccea49eed2d7bb48c
releaseVersion: 0.1.23
configChecksum: 991bb8e65e382038e344c12cdd982649
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: false
typescript:
version: 0.1.18
version: 0.1.23
acceptHeaderEnum: false
additionalDependencies:
dependencies: {}
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ targets:
sourceRevisionDigest: sha256:ffe0e925561a55a1b403667fe33bb3158e05892ef1e66f56211544c9a890b301
sourceBlobDigest: sha256:18aa7b22686c2f559af1062fea408a9f80146231027ed1fd62b68df38c71f65d
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:773f28292c3a6cff16578829c01a9ffb37f23d3c27b607e7e7e97f55cfd00f64
codeSamplesRevisionDigest: sha256:7ef1c761fb99fe75b91e84384cfbf9703c9d160d8e9be9a1d72dd49e7df32af3
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
Loading