ci(gh-actions): Bump actions/setup-dotnet from 5.0.1 to 5.1.0 (#447) #1157
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: .NET CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| DOTNET_NOLOGO: true | |
| NUGET_XMLDOC_MODE: skip | |
| NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Setup .NET SDK # detected from global.json | |
| uses: actions/setup-dotnet@v5.1.0 | |
| - name: Add Problem Matcher for dotnet-format | |
| run: echo "::add-matcher::.github/dotnet-format.json" | |
| - name: Lint | |
| run: dotnet format --verify-no-changes --verbosity detailed | |
| validate: | |
| name: Validate NuGet Lock Files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v5.1.0 | |
| with: | |
| dotnet-version: ${{ vars.DOTNET_SDK_VERSIONS }} | |
| cache: true | |
| cache-dependency-path: '**/packages.lock.json' | |
| - name: Restore with lock files | |
| run: dotnet restore --locked-mode | |
| test: | |
| name: Debug Build & Test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - ubuntu-24.04-arm | |
| - windows-latest | |
| - windows-11-arm | |
| - macos-latest | |
| - macos-15-intel | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v5.1.0 | |
| with: | |
| dotnet-version: ${{ vars.DOTNET_SDK_VERSIONS }} | |
| cache: true | |
| cache-dependency-path: '**/packages.lock.json' | |
| - name: Build | |
| run: dotnet build | |
| - name: Test | |
| run: dotnet test --no-build --coverage --coverage-output-format cobertura --coverage-output "${{ vars.COVERAGE_REPORT_FILE }}" | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5.5.2 | |
| if: ${{ !cancelled() }} | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: ${{ runner.os }},${{ runner.arch }} | |
| disable_search: true | |
| files: | | |
| ${{ format(vars.TEST_ASSET_FOLDERS, 'net10.0', vars.COVERAGE_REPORT_FILE) }}, | |
| ${{ format(vars.TEST_ASSET_FOLDERS, 'net9.0', vars.COVERAGE_REPORT_FILE) }}, | |
| ${{ format(vars.TEST_ASSET_FOLDERS, 'net8.0', vars.COVERAGE_REPORT_FILE) }} |