build(deps): Bump xunit.runner.visualstudio from 2.5.1 to 2.5.4 #556
Workflow file for this run
This file contains 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: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
configuration: Release | |
productNamespacePrefix: "ReactiveMarbles" | |
jobs: | |
build: | |
runs-on: windows-2022 | |
outputs: | |
nbgv: ${{ steps.nbgv.outputs.SemVer2 }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: Install .NET 6 and 7 | |
uses: actions/setup-dotnet@v3.2.0 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
- uses: nuget/setup-nuget@v1 | |
name: Setup NuGet | |
- name: Install DotNet workloads | |
shell: bash | |
run: | | |
dotnet workload install android | |
dotnet workload install ios | |
dotnet workload install tvos | |
dotnet workload install macos | |
dotnet workload install maui | |
dotnet workload install maccatalyst | |
- name: Add MSBuild to PATH | |
uses: glennawatson/setup-msbuild@v1.0.3 | |
with: | |
prerelease: true | |
- name: NBGV | |
id: nbgv | |
uses: dotnet/nbgv@master | |
with: | |
setAllVars: true | |
- name: NuGet Restore | |
run: nuget restore | |
working-directory: src | |
- name: Build | |
run: msbuild /t:build,pack /nowarn:MSB4011 /maxcpucount /p:NoPackageAnalysis=true /verbosity:minimal /p:Configuration=${{ env.configuration }} | |
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: 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' |