Bump xunit.v3 from 3.1.0 to 3.2.0 #246
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
| # This workflow will build a .NET project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
| name: .NET | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| env: | |
| servicelocator_sln : "vb2ae.ServiceLocator.MSDependencyInjection.sln" | |
| package_feed: "https://nuget.pkg.github.com/vb2ae/index.json" | |
| nuget_folder: "\\packages" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # avoid shallow clone so nbgv can do its work | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Install Microsoft SBom tool | |
| run: dotnet tool install --global Microsoft.Sbom.DotNetTool | |
| - name: Install Nerdbank Git versioning | |
| run: dotnet tool install -g nbgv | |
| - name: Set Version | |
| run: nbgv cloud | |
| - name: Build | |
| run: dotnet build --no-restore --configuration Release | |
| - name: Test | |
| run: dotnet test ${{env.servicelocator_sln}} --configuration Release -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover --no-build --verbosity normal | |
| - name: Pack Nuget | |
| run: dotnet pack ${{env.servicelocator_sln}} --output ${{env.nuget_folder}} | |
| - name: publish Nuget Packages to GitHub | |
| run: dotnet nuget push packages/*.nupkg --source ${{env.package_feed}} --api-key ${{secrets.PUBLISH_NUGET_PACKAGE}} --skip-duplicate | |
| if: github.event_name != 'pull_request' | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: published_nuget | |
| path: packages/*.nupkg |