chore(deps): update xunit-dotnet monorepo #468
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: Build | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| configuration: Release | |
| productNamespacePrefix: "ReactiveMarbles" | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| outputs: | |
| nbgv: ${{ steps.nbgv.outputs.SemVer2 }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Setup .NET (With cache) | |
| uses: actions/[email protected] | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| dotnet-quality: 'preview' | |
| cache: true | |
| cache-dependency-path: | | |
| **/Directory.Packages.props | |
| **/*.sln | |
| **/*.csproj | |
| **/global.json | |
| **/nuget.config | |
| - name: NBGV | |
| id: nbgv | |
| uses: dotnet/nbgv@master | |
| with: | |
| setAllVars: true | |
| - name: NuGet Restore | |
| run: dotnet restore | |
| working-directory: src | |
| - name: Build | |
| run: dotnet build --configuration=${{ env.configuration }} --verbosity=minimal --no-restore | |
| working-directory: src | |
| - name: Run Unit Tests and Generate Coverage | |
| uses: glennawatson/coverlet-msbuild@v2 | |
| with: | |
| project-files: '**/*Tests*.csproj' | |
| no-build: true | |
| exclude-filter: '[${{env.productNamespacePrefix}}.*.Tests.*]*' | |
| include-filter: '[${{env.productNamespacePrefix}}*]*' | |
| output-format: cobertura | |
| output: '../../artifacts/' | |
| configuration: ${{ env.configuration }} | |
| - name: Pack | |
| run: dotnet pack --configuration=${{ env.configuration }} --verbosity=minimal --no-restore | |
| working-directory: src | |
| - name: Upload Code Coverage | |
| shell: bash | |
| run: | | |
| echo $PWD | |
| bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy -t ${{ env.CODECOV_TOKEN }} -s '$PWD/artifacts' -f '*.xml' | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Create NuGet Artifacts | |
| uses: actions/upload-artifact@master | |
| with: | |
| name: nuget | |
| path: '**/*.nupkg' |