Workflow file for this run
This file contains hidden or 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: Samples C# .Net Client (from AppVeyor) | |
| on: | |
| push: | |
| paths: | |
| # the .NET Core 3.0 runtime is no longer supported as it reached its end-of-life on March 3, 2020 | |
| #- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/** | |
| - samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/** | |
| - samples/client/petstore/csharp/restsharp/net4.7/Petstore/** | |
| - samples/client/petstore/csharp/restsharp/net4.8/Petstore/** | |
| - samples/client/petstore/csharp/restsharp/net8/ParameterMappings/** | |
| - samples/client/petstore/csharp/restsharp/net8/EnumMappings/** | |
| - samples/client/petstore/csharp/restsharp/net8/Petstore/** | |
| - samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/** | |
| - samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/** | |
| - samples/client/petstore/csharp/restsharp/standard2.0/Petstore/** | |
| pull_request: | |
| paths: | |
| #- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/** | |
| - samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/** | |
| - samples/client/petstore/csharp/restsharp/net4.7/Petstore/** | |
| - samples/client/petstore/csharp/restsharp/net4.8/Petstore/** | |
| - samples/client/petstore/csharp/restsharp/net8/ParameterMappings/** | |
| - samples/client/petstore/csharp/restsharp/net8/EnumMappings/** | |
| - samples/client/petstore/csharp/restsharp/net8/Petstore/** | |
| - samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/** | |
| - samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/** | |
| - samples/client/petstore/csharp/restsharp/standard2.0/Petstore/** | |
| jobs: | |
| build: | |
| name: Build clients (migrated from AppVeyor) | |
| runs-on: windows-latest | |
| services: | |
| petstore-api: | |
| image: swaggerapi/petstore | |
| ports: | |
| - 80:8080 | |
| env: | |
| SWAGGER_HOST: http://petstore.swagger.io | |
| SWAGGER_BASE_PATH: /v2 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| sample: | |
| #- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/ | |
| - samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/ | |
| - samples/client/petstore/csharp/restsharp/net4.7/Petstore/ | |
| - samples/client/petstore/csharp/restsharp/net4.8/Petstore/ | |
| - samples/client/petstore/csharp/restsharp/net8/ParameterMappings/ | |
| - samples/client/petstore/csharp/restsharp/net8/EnumMappings/ | |
| - samples/client/petstore/csharp/restsharp/net8/Petstore/ | |
| - samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/ | |
| - samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/ | |
| - samples/client/petstore/csharp/restsharp/standard2.0/Petstore/ | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-dotnet@v5.0.0 | |
| with: | |
| dotnet-version: '7.0.x' | |
| - name: Build | |
| working-directory: ${{ matrix.sample }} | |
| run: dotnet build Org.OpenAPITools.sln | |
| - name: Test | |
| working-directory: ${{ matrix.sample }} | |
| run: dotnet test Org.OpenAPITools.sln |