fix-null-body-csharp (#47) #246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
workflow_dispatch: | |
inputs: | |
useComplexSwagger: | |
description: 'Use complexSwagger.json' | |
required: false | |
default: 'true' | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: [ master ] | |
env: | |
OPENAPI_TOOLKIT_TESTFILE: "${{ github.workspace }}/.github/complexSwagger.json" | |
DOTNET_NOLOGO: true | |
jobs: | |
test-typescript-axios: | |
name: Test Typescript Axios | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
with: | |
useComplexSwagger: ${{ github.event.inputs.useComplexSwagger }} | |
- run: npm run test:typescript-axios | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-typescript-axios | |
path: test* | |
retention-days: 1 | |
if-no-files-found: error | |
overwrite: true | |
test-typescript-models: | |
name: Test Typescript Models | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
with: | |
useComplexSwagger: ${{ github.event.inputs.useComplexSwagger }} | |
- run: npm run test:typescript-models | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-typescript-models | |
path: test* | |
retention-days: 1 | |
if-no-files-found: error | |
overwrite: true | |
test-typescript-reactquery: | |
name: Test Typescript ReactQuery | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
with: | |
useComplexSwagger: ${{ github.event.inputs.useComplexSwagger }} | |
- run: npm run test:typescript-react-query | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-typescript-reactquery | |
path: test* | |
retention-days: 1 | |
if-no-files-found: error | |
overwrite: true | |
test-csharp: | |
name: Test C# | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
with: | |
useComplexSwagger: ${{ github.event.inputs.useComplexSwagger }} | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
- run: npm run test:csharp | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-csharp | |
path: test* | |
retention-days: 1 | |
if-no-files-found: error | |
overwrite: true | |
test-csharp-nullable-false: | |
name: Test C# nullable false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
with: | |
useComplexSwagger: ${{ github.event.inputs.useComplexSwagger }} | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
- run: npm run test:csharp2 | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-csharp-nullable-false | |
path: test* | |
retention-days: 1 | |
if-no-files-found: error | |
overwrite: true | |
test-python: | |
name: Test Python | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
with: | |
useComplexSwagger: ${{ github.event.inputs.useComplexSwagger }} | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
- run: pip install pylint requests | |
- run: npm run test:python | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-python | |
path: test* | |
retention-days: 1 | |
if-no-files-found: error | |
overwrite: true | |
test-go: | |
name: Test Go | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
with: | |
useComplexSwagger: ${{ github.event.inputs.useComplexSwagger }} | |
- run: npm run test:go | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-go | |
path: test* | |
retention-days: 1 | |
if-no-files-found: error | |
overwrite: true | |
test-go-server: | |
name: Test Go Server | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
with: | |
useComplexSwagger: ${{ github.event.inputs.useComplexSwagger }} | |
- run: npm run test:go-server | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-go-server | |
path: test* | |
retention-days: 1 | |
if-no-files-found: error | |
overwrite: true |