Bump dotnet-sdk from 9.0.203 to 9.0.300 #201
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: test | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - "**/*.cs" | |
| - "**/*.csproj" | |
| - "**/*.props" | |
| - "**/packages.lock.json" | |
| - "global.json" | |
| - ".github/workflows/test.yml" | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-latest"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: ./global.json | |
| cache: true | |
| cache-dependency-path: "**/packages.lock.json" | |
| - name: Install Report Generator | |
| run: dotnet tool install --global dotnet-reportgenerator-globaltool | |
| - name: Restore | |
| run: dotnet restore --locked-mode | |
| - name: Build | |
| run: dotnet build -c Release --no-restore | |
| - name: Test & collect coverage | |
| run: | | |
| dotnet test -c Release --no-restore --no-build -- \ | |
| --coverage --coverage-output-format xml --coverage-output ${{ github.workspace }}/coverage.xml | |
| - name: Find coverage files and generate report | |
| run: | | |
| reportgenerator -reports:"${{ github.workspace }}/**/coverage.xml" \ | |
| -targetdir:"coverage-report" \ | |
| -reporttypes:MarkdownSummaryGithub | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: coverage-report | |
| - name: Add coverage to summary | |
| run: cat coverage-report/SummaryGithub.md >> $GITHUB_STEP_SUMMARY |