[C#] test petstore client with .net10 #5
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 10 Client (Petstore) | |
| on: | |
| push: | |
| paths: | |
| - samples/client/petstore/csharp/restsharp/net10/Petstore/** | |
| pull_request: | |
| paths: | |
| - samples/client/petstore/csharp/restsharp/net10/Petstore/** | |
| jobs: | |
| build: | |
| name: Build clients | |
| runs-on: ubuntu-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/restsharp/net10/Petstore/ | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-dotnet@v5.2.0 | |
| with: | |
| dotnet-version: '10.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 |