Add .NET 10 support #10
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: Pull Request - master | |
| permissions: | |
| pull-requests: write | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '.github/**' | |
| - '.editorconfig' | |
| - '.gitignore' | |
| - '.gitattributes' | |
| - 'CONTRIBUTING.md' | |
| - 'LICENSE.txt' | |
| - 'NuGet.config' | |
| - 'README.md' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET 9.0.x | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Restore solution | |
| run: dotnet restore | |
| - name: Build solution | |
| run: dotnet build --configuration Debug --no-restore -p:ContinuousIntegrationBuild=true | |
| - name: Test solution | |
| run: dotnet test --configuration Debug --no-build -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:UseSourceLink=true -p:CoverletOutput=../../coverage/ | |
| - name: Create code coverage summary | |
| uses: irongut/CodeCoverageSummary@v1.3.0 | |
| with: | |
| filename: ./coverage/*.xml | |
| badge: true | |
| fail_below_min: true | |
| format: markdown | |
| hide_branch_rate: false | |
| hide_complexity: false | |
| indicators: true | |
| output: both | |
| thresholds: '90 95' | |
| - name: Create code coverage HTML report | |
| uses: danielpalme/ReportGenerator-GitHub-Action@5.3.9 | |
| with: | |
| reports: ./coverage/*.xml | |
| targetdir: report | |
| reporttypes: HtmlInline | |
| - name: Upload code coverage HTML report as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CodeCoverageReport | |
| path: report | |
| - name: Add code coverage summary to PR | |
| uses: marocchino/sticky-pull-request-comment@v2 | |
| with: | |
| recreate: true | |
| path: code-coverage-results.md | |
| - name: Add code coverage summary to job summary | |
| run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY |