Bump Microsoft.NET.Test.Sdk from 18.0.1 to 18.3.0 #600
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: Unittests and Coverage | |
| on: [push, pull_request] | |
| jobs: | |
| unittest: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| dotnet-version: [ "9", "10" ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - name: Run Tests | |
| working-directory: ./ChronoJsonDiffPatch | |
| run: dotnet test --configuration Release | |
| coverage: | |
| needs: unittest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10 | |
| - name: Install dependencies | |
| working-directory: ./ChronoJsonDiffPatch | |
| run: dotnet restore | |
| - name: Install coverlet.msbuild in ChronoJsonDiffPatchTests | |
| working-directory: ./ChronoJsonDiffPatch/ChronoJsonDiffPatchTests | |
| run: dotnet add package coverlet.msbuild | |
| - name: Measure Test Coverage | |
| working-directory: ./ChronoJsonDiffPatch | |
| run: dotnet test /p:Threshold=85 /p:Include=\"[*]ChronoJsonDiffPatch.*\" /p:ThresholdType=line /p:CollectCoverage=true /p:SkipAutoProps=true /p:CoverletOutputFormat=lcov --configuration Release |