name: Samples C# .Net 7 Client 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/** 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/** jobs: build: name: Build clients runs-on: windows-latest 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/ steps: - uses: actions/checkout@v5 - uses: actions/setup-dotnet@v5.1.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