Skip to content

Bump FluentAssertions from 7.0.0 to 8.7.1 #283

Bump FluentAssertions from 7.0.0 to 8.7.1

Bump FluentAssertions from 7.0.0 to 8.7.1 #283

Workflow file for this run

name: CI
on:
push:
pull_request:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
check-format:
if: github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK v7.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Restore tool
run: dotnet tool restore
- name: Check format
run: dotnet tool run dotnet-format -- --check
NuGetPackageCheckerTests:
if: github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET SDK v6.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Test
run: dotnet test --configuration=Release
NuGetPackageChecker:
if: github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
needs: NuGetPackageCheckerTests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET SDK v6.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Build
run: dotnet pack --configuration=Release
- name: Upload NuGet package artifacts
uses: actions/upload-artifact@v4
with:
name: nuget-packages
path: artefacts/*.nupkg
# Publish NuGet packages when a tag is pushed.
# Build needs to succeed first, including having a tag name that matches the version number.
publish-release:
if: ${{ !github.event.repository.fork && startsWith(github.ref, 'refs/tags/v') }}
needs: NuGetPackageChecker
runs-on: windows-latest
steps:
- name: Download NuGet package artifacts
uses: actions/download-artifact@v4
with:
name: nuget-packages
path: artefacts
- name: Publish to NuGet
run: |
if ("${{ github.ref }}" -like "refs/tags/v*") {
$tag = "${{ github.ref }}".SubString(11)
$expectedNuGetPackageCheckerFile = "artefacts/NuGetPackageChecker.$tag.nupkg"
# Check whether the tag and the package version match together
if (-not (Test-Path -Path $expectedNuGetPackageCheckerFile)) {
echo "::error ::Expected file $expectedNuGetPackageCheckerFile doesn't exist"
exit 1
}
dotnet nuget push $expectedNuGetPackageCheckerFile --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
}