Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Stravaig Test Capture Logger V3
name: Stravaig Test Capture Logger V4
on:
push:
branches:
Expand Down Expand Up @@ -42,17 +42,12 @@ jobs:
run: ./Set-Version.ps1

- name: Display workflow state
run: |
echo "Package version: $STRAVAIG_PACKAGE_VERSION"
echo "Version Suffix: $STRAVAIG_PACKAGE_VERSION_SUFFIX"
echo "Stable Version: $STRAVAIG_STABLE_VERSION"
echo "Preview Version: $STRAVAIG_PREVIEW_VERSION"
run: env | sort

- uses: actions/setup-dotnet@v4
name: Setup .NET 6.0, 8.0 & 9.0
name: Setup .NET 8.0 & 9.0
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x

Expand All @@ -62,14 +57,14 @@ jobs:
- name: Package Preview Release
run: |
export STRAVAIG_NUGET_VERSION=$STRAVAIG_PREVIEW_VERSION
dotnet pack ./src/Stravaig.Extensions.Logging.Diagnostics/Stravaig.Extensions.Logging.Diagnostics.csproj --configuration Release --output ./out/preview --include-symbols --include-source /p:VersionPrefix="$STRAVAIG_PACKAGE_VERSION" --version-suffix "$STRAVAIG_PACKAGE_VERSION_SUFFIX" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
dotnet pack ./src/Stravaig.Extensions.Logging.Diagnostics.XUnit/Stravaig.Extensions.Logging.Diagnostics.XUnit.csproj --configuration Release --output ./out/preview --include-symbols --include-source /p:VersionPrefix="$STRAVAIG_PACKAGE_VERSION" --version-suffix "$STRAVAIG_PACKAGE_VERSION_SUFFIX" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
dotnet pack ./src/Stravaig.Extensions.Logging.Diagnostics/Stravaig.Extensions.Logging.Diagnostics.csproj --configuration Release --output ./out/preview --include-symbols --include-source /p:VersionPrefix="$STRAVAIG_PACKAGE_VERSION" --version-suffix "$STRAVAIG_PACKAGE_VERSION_SUFFIX" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg /p:AssemblyVersion=$STRAVAIG_PREVIEW_ASSEMBLY_VERSION /p:FileVersion=$STRAVAIG_PREVIEW_ASSEMBLY_VERSION
dotnet pack ./src/Stravaig.Extensions.Logging.Diagnostics.XUnit/Stravaig.Extensions.Logging.Diagnostics.XUnit.csproj --configuration Release --output ./out/preview --include-symbols --include-source /p:VersionPrefix="$STRAVAIG_PACKAGE_VERSION" --version-suffix "$STRAVAIG_PACKAGE_VERSION_SUFFIX" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg /p:AssemblyVersion=$STRAVAIG_PREVIEW_ASSEMBLY_VERSION /p:FileVersion=$STRAVAIG_PREVIEW_ASSEMBLY_VERSION

- name: Package Stable Release
run: |
export STRAVAIG_NUGET_VERSION=$STRAVAIG_STABLE_VERSION
dotnet pack ./src/Stravaig.Extensions.Logging.Diagnostics/Stravaig.Extensions.Logging.Diagnostics.csproj --configuration Release --output ./out/stable --include-symbols --include-source /p:VersionPrefix="$STRAVAIG_PACKAGE_VERSION" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
dotnet pack ./src/Stravaig.Extensions.Logging.Diagnostics.XUnit/Stravaig.Extensions.Logging.Diagnostics.XUnit.csproj --configuration Release --output ./out/stable --include-symbols --include-source /p:VersionPrefix="$STRAVAIG_PACKAGE_VERSION" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
dotnet pack ./src/Stravaig.Extensions.Logging.Diagnostics/Stravaig.Extensions.Logging.Diagnostics.csproj --configuration Release --output ./out/stable --include-symbols --include-source /p:VersionPrefix="$STRAVAIG_PACKAGE_VERSION" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg /p:AssemblyVersion=$STRAVAIG_ASSEMBLY_VERSION /p:FileVersion=$STRAVAIG_ASSEMBLY_VERSION
dotnet pack ./src/Stravaig.Extensions.Logging.Diagnostics.XUnit/Stravaig.Extensions.Logging.Diagnostics.XUnit.csproj --configuration Release --output ./out/stable --include-symbols --include-source /p:VersionPrefix="$STRAVAIG_PACKAGE_VERSION" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg /p:AssemblyVersion=$STRAVAIG_ASSEMBLY_VERSION /p:FileVersion=$STRAVAIG_ASSEMBLY_VERSION

- name: Archive Packages
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ A logger for use in tests so that the messages logged can be examined in tests.
* v1.x supports .NET Core 3.1 and .NET 5.0
* v2.x supports .NET 6.0, 7.0 and 8.0
* v3.x supports .NET 6.0, 8.0 & 9.0
* v4.x supports .NET 8.0 & 9.0

## Why test logs?

Expand Down
5 changes: 4 additions & 1 deletion Set-Version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ $suffix = "preview."
$suffix += $runNumber.ToString();

$previewVersion = "$nextVersion-$suffix";
$assemblyVersion = "$nextVersion.$runNumber"
$envContent = "STRAVAIG_PACKAGE_VERSION=$nextVersion" + [System.Environment]::NewLine +
"STRAVAIG_PACKAGE_VERSION_SUFFIX=$suffix" + [System.Environment]::NewLine +
"STRAVAIG_STABLE_VERSION=$nextVersion" + [System.Environment]::NewLine +
"STRAVAIG_PREVIEW_VERSION=$previewVersion";
"STRAVAIG_PREVIEW_VERSION=$previewVersion" + [System.Environment]::NewLine +
"STRAVAIG_PREVIEW_ASSEMBLY_VERSION=$assemblyVersion" + [System.Environment]::NewLine +
"STRAVAIG_ASSEMBLY_VERSION=$nextVersion"

Write-Host $envContent;

Expand Down
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ v2.x supports: .NET 6.0, 7.0 and 8.0

v3.x supports: .NET 6.0, 8.0 & 9.0

v4.x supports: .NET 8.0 & 9.0

## Other Stuff

* [Contributors](contributors.md)
Expand Down
13 changes: 3 additions & 10 deletions release-notes/wip-release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,11 @@

Date: ???

### Bug Fixes

### Features

### Miscellaneous

- Drop support for .NET 6.0

### Dependencies

- All targets:
- .NET 6.0 targets:
- .NET 8.0 targets:
- .NET 9.0 targets:



- Bump Microsoft.Extensions.Logging.Abstractions to 9.0.7

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<LangVersion>12</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nunit" Version="4.3.2" />
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="Shouldly" Version="4.3.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.3" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.3" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.7" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.7" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<YEAR>$([System.DateTime]::Now.Year)</YEAR>
<TargetFrameworks>net6.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<Title>XUnit extensions for Stravaig Logging Capture for Tests</Title>
<Version>$(STRAVAIG_NUGET_VERSION)</Version>
<Authors>Colin Angus Mackay</Authors>
Expand All @@ -18,7 +18,8 @@
XUnit extensions for Stravaig Logging Capture for Tests.

Use version 2.x for .NET 6.0 onwards.
Use version 3.x for .NET 6.0, 8.0 &amp; 9.0 onwards.
Use version 3.x for .NET 6.0, 8.0 &amp;amp; 9.0 onwards.
Use version 4.x for .NET 8.0 &amp; 9.0 onwards.
</Description>
<Nullable>enable</Nullable>
<LangVersion>12</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ XUnit extensions for [Stravaig Log Capture](https://www.nuget.org/packages/Strav

* v2.x: Supports .NET 6.0, 7.0 & 8.0
* v3.x: Supports .NET 6.0, 8.0 & 9.0
* v4.x: Supports .NET 8.0 & 9.0


## How to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<YEAR>$([System.DateTime]::Now.Year)</YEAR>
<TargetFrameworks>net6.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<Title>Stravaig Logging Capture for Tests</Title>
<Version>$(STRAVAIG_NUGET_VERSION)</Version>
<Authors>Colin Angus Mackay</Authors>
Expand All @@ -20,7 +20,8 @@

Use version 1.x for .NET prior to 6.0.
Use version 2.x for .NET 6.0 onwards.
Use version 3.x for .NET 6.0, 8.0 &amp; 9.0 onwards.
Use version 3.x for .NET 6.0, 8.0 &amp;amp; 9.0 onwards.
Use version 4.x for .NET 8.0 &amp; 9.0 onwards.
</Description>
<Nullable>enable</Nullable>
<LangVersion>13</LangVersion>
Expand All @@ -46,16 +47,12 @@
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.4" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.3" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.3" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.7" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/Stravaig.Extensions.Logging.Diagnostics/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Stravaig Log Capture is a way to capture the logs in a test and examine them to
* v1.x: Supports .NET Core 3.1 & .NET 5
* v2.x: Supports .NET 6.0, 7.0 & 8.0
* v3.x: Supports .NET 6.0, 8.0 & 9.0
* v4.x: Supports .NET 8.0 & 9.0

## Why do I want to test my logs?

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.4
4.0.0