Update dependency Verify.Xunit to 30.2* #2399
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, 'release/*.x' ] | |
| env: | |
| configuration: Release | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| outputs: | |
| nbgv: ${{ steps.nbgv.outputs.SemVer2 }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Setup .NET (With cache) | |
| uses: actions/setup-dotnet@v5.3.0 | |
| with: | |
| dotnet-version: | | |
| 6.0.x | |
| 7.0.x | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| cache: true | |
| cache-dependency-path: | | |
| **/Directory.Packages.props | |
| **/*.sln | |
| **/*.csproj | |
| **/global.json | |
| **/nuget.config | |
| - name: Install (or update) nbgv tool | |
| run: dotnet tool update --global nbgv | |
| - name: Set NBGV cloud variables | |
| run: nbgv cloud -a | |
| - name: Expose NBGV version as step outputs | |
| id: nbgv | |
| shell: pwsh | |
| run: | | |
| $ErrorActionPreference = 'Stop' | |
| "SemVer2=$env:NBGV_SemVer2" >> $env:GITHUB_OUTPUT | |
| "PrereleaseVersion=$env:NBGV_PrereleaseVersion" >> $env:GITHUB_OUTPUT | |
| - name: NuGet Restore | |
| run: dotnet restore DynamicData.sln | |
| working-directory: src | |
| - name: Build | |
| run: dotnet build --no-restore --configuration Release DynamicData.sln | |
| working-directory: src | |
| - name: Run Tests | |
| run: dotnet test --no-restore --configuration Release DynamicData.sln | |
| working-directory: src | |
| - name: Pack | |
| run: dotnet pack --no-restore --configuration Release DynamicData.sln | |
| working-directory: src | |
| - name: Create NuGet Artifacts | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: nuget | |
| path: 'src/**/bin/Release/*.nupkg' |