From fe314794a630d7543527169b8648d56d5c681693 Mon Sep 17 00:00:00 2001 From: chad Date: Tue, 3 Jun 2025 18:23:16 -0500 Subject: [PATCH] ci: add tests --- .github/workflows/sdk_test.yaml | 26 ++++++++++++++++++++++++++ .speakeasy/gen.yaml | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/sdk_test.yaml diff --git a/.github/workflows/sdk_test.yaml b/.github/workflows/sdk_test.yaml new file mode 100644 index 0000000..a533fd2 --- /dev/null +++ b/.github/workflows/sdk_test.yaml @@ -0,0 +1,26 @@ +name: Test +permissions: + checks: write + contents: write + pull-requests: write + statuses: write + id-token: write +"on": + pull_request: + branches: + - main + paths: + - '**' + workflow_dispatch: + inputs: + target: + description: Provided SDK target to run tests for, (all) is valid + type: string +jobs: + test: + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-test.yaml@v15 + with: + target: ${{ github.event.inputs.target || 'atoma-sdk' }} + secrets: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 03b3282..01ea1f9 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -7,6 +7,7 @@ generation: maintainOpenAPIOrder: true usageSnippets: optionalPropertyRendering: withExample + sdkInitStyle: constructor useClassNamesForArrayFields: true fixes: nameResolutionDec2023: true @@ -14,11 +15,13 @@ generation: parameterOrderingFeb2024: true requestResponseComponentNamesFeb2024: true securityFeb2025: true + sharedErrorComponentsApr2025: false auth: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true tests: generateNewTests: true + skipResponseBodyAssertions: false typescript: version: 0.0.2 additionalDependencies: