Skip to content

Bump xunit from 2.7.1 to 2.9.0 #738

Bump xunit from 2.7.1 to 2.9.0

Bump xunit from 2.7.1 to 2.9.0 #738

Workflow file for this run

name: Branch workflow
on:
push:
branches-ignore:
- master
- 'release/**'
- 'releases/**'
pull_request:
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
MSBUILDSINGLELOADCONTEXT: 1
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Restore dotnet tools
run: dotnet tool restore
- name: Fetch complete repository including tags
run: git fetch --tags --force --prune && git describe
- name: Generate version info from git history
run: dotnet gitversion /output json | jq -r 'to_entries|map("GitVersion_\(.key)=\(.value|tostring)")|.[]' >> $GITHUB_ENV
- name: Fail if the version number has not been resolved
if: ${{ !env.GitVersion_SemVer }}
run: |
echo Error! Version number not resolved!
exit 1
- name: Print current version
run: echo "Current version is \"$GitVersion_SemVer\""
- name: Install dependencies
run: dotnet restore
- name: Build solution
run: dotnet build --no-restore -c Release
- name: Run Tests
run: dotnet test -c Release --no-restore --no-build
- name: Create NuGet packages
run: dotnet pack -c Release --no-restore --no-build -o nupkg
- name: Upload nuget packages
uses: actions/upload-artifact@v4
with:
name: nupkg
path: nupkg