Skip to content

Bump Microsoft.AspNetCore.Mvc.Testing from 7.0.5 to 7.0.10 #619

Bump Microsoft.AspNetCore.Mvc.Testing from 7.0.5 to 7.0.10

Bump Microsoft.AspNetCore.Mvc.Testing from 7.0.5 to 7.0.10 #619

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@v3
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.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@v3
with:
name: nupkg
path: nupkg