Update dependency Microsoft.NET.Test.Sdk to 18.3.0 #293
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: BBCode.WPF CI-BuildOnly | |
| on: | |
| push: | |
| branches-ignore: | |
| - main | |
| jobs: | |
| build-and-release: | |
| runs-on: windows-2025 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # avoid shallow clone so nbgv can do its work. | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 6.0.x | |
| 7.0.x | |
| 8.0.x | |
| - name: Add MSBuild to PATH | |
| uses: microsoft/setup-msbuild@v2.0.0 | |
| with: | |
| vs-prerelease: true | |
| - name: NBGV | |
| id: nbgv | |
| uses: dotnet/nbgv@master | |
| with: | |
| setAllVars: true | |
| - run: echo 'SemVer2=${{ steps.nbgv.outputs.SemVer2 }}' | |
| - name: NuGet Restore | |
| run: dotnet restore BBCode.WPF.sln | |
| working-directory: src | |
| - name: Build | |
| run: msbuild /t:build,pack /nowarn:MSB4011 /maxcpucount /p:NoPackageAnalysis=true /verbosity:minimal /p:Configuration=Release BBCode.WPF.sln | |
| working-directory: src | |
| - name: Run Unit Tests and Generate Coverage | |
| uses: glennawatson/coverlet-msbuild@v2.1 | |
| with: | |
| project-files: 'src/**/*Tests*.csproj' | |
| no-build: true | |
| include-filter: 'BBCode.WPF*' | |
| output-format: cobertura | |
| configuration: Release | |
| - name: Upload Code Coverage | |
| uses: codecov/codecov-action@v5 | |
| - name: Create NuGet Artifacts | |
| uses: actions/upload-artifact@master | |
| with: | |
| name: nuget | |
| path: '**/*.nupkg' |