feat: update to dotnet 10, with unit test fixes and some packages updates #519
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: main build | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@230611dbd0eb52da1e1f4f7bc8bb0c3a339fc8b7 | |
| - name: Install Dotnet | |
| uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Dotnet Installation Info | |
| run: dotnet --info | |
| - name: Build | |
| run: dotnet build | |
| - name: Test | |
| run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | |
| - name: Report Code Coverage | |
| if: matrix.platform == 'windows-latest' # only generate and upload code coverage once | |
| uses: codecov/codecov-action@260aa3b4b2f265b8578bc0e721e33ebf8ff53313 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: CSharpRepl.Tests/coverage.opencover.xml |