Adds MCP generator CLI Tool and Integration #16
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: PR Build | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| - name: Restore .NET tools | |
| run: dotnet tool restore | |
| - name: Restore dependencies | |
| run: dotnet restore RestClient.sln | |
| - name: Check code formatting with CSharpier | |
| run: dotnet csharpier --check . | |
| - name: Build solution | |
| run: dotnet build RestClient.sln --configuration Release --no-restore /warnaserror | |
| - name: Run code analysis | |
| run: dotnet build RestClient.sln --configuration Release --no-restore /p:RunAnalyzers=true /p:TreatWarningsAsErrors=true | |
| - name: Run Stryker Mutation Testing | |
| working-directory: RestClient.Net.CsTest | |
| run: dotnet stryker --break-at 100 | |
| - name: Verify Docker is available | |
| run: | | |
| docker --version | |
| docker compose version | |
| - name: Run all tests with code coverage | |
| run: dotnet test RestClient.sln --configuration Release --no-build --verbosity normal --logger "console;verbosity=detailed" --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Threshold=100 DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.ThresholdType=line,branch,method DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.ThresholdStat=total | |
| - name: Cleanup Docker containers | |
| if: always() | |
| run: | | |
| cd Samples/NucliaDbClient | |
| docker compose down -v --remove-orphans || true | |