Skip to content

V0.4.0/launch #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 12, 2024
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
5 changes: 4 additions & 1 deletion .github/workflows/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
configuration: [Debug, Release]
framework: [net8.0]
framework: [net9.0,net8.0]
outputs:
version: ${{ steps.minver-calculate.outputs.version }}
steps:
Expand Down Expand Up @@ -168,6 +168,8 @@ jobs:

- name: Install .NET
uses: codebeltnet/install-dotnet@v1
with:
includePreview: true

- name: Restore Dependencies
uses: codebeltnet/dotnet-restore@v2
Expand All @@ -185,6 +187,7 @@ jobs:
uses: codebeltnet/codeql-scan-finalize@v1

deploy:
if: github.event_name != 'pull_request'
name: 🚀 Deploy v${{ needs.build.outputs.version }}
runs-on: ubuntu-22.04
needs: [build,pack,test,sonarcloud,codecov,codeql]
Expand Down
6 changes: 6 additions & 0 deletions .nuget/Codebelt.SharedKernel/PackageReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version: 0.4.0
Availability: .NET 9 and .NET 8

# ALM
- CHANGED Dependencies to latest and greatest with respect to TFMs

Version: 0.3.0
Availability: .NET 8

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

For more details, please refer to `PackageReleaseNotes.txt` on a per assembly basis in the `.nuget` folder.

## [0.4.0] - 2024-11-13

#### Codebelt.SharedKernel

Purely an ALM release. No changes to the codebase.

## [0.3.0] - 2024-09-08

#### Codebelt.SharedKernel
Expand Down
22 changes: 11 additions & 11 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<PropertyGroup Condition="'$(IsTestProject)' == 'false'">
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
<Copyright>Copyright © Geekle 2024. All rights reserved.</Copyright>
<Authors>gimlichael</Authors>
<Company>Geekle</Company>
Expand All @@ -39,14 +39,14 @@
</ItemGroup>

<ItemGroup Condition="'$(IsTestProject)' == 'false'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="MinVer" Version="6.0.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="all" />
<PackageReference Include="MinVer" PrivateAssets="all" />
<None Include="..\..\.nuget\$(MSBuildProjectName)\icon.png" Pack="true" Visible="false" PackagePath="\" />
<None Include="..\..\.nuget\$(MSBuildProjectName)\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<PropertyGroup Condition="'$(IsTestProject)' == 'true'">
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<RunAnalyzers>false</RunAnalyzers>
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
Expand All @@ -59,19 +59,19 @@
</PropertyGroup>

<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.console" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.console" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="coverlet.msbuild">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Cuemon.Extensions.Xunit.App" Version="8.3.2" />
<PackageReference Include="Codebelt.Extensions.Xunit.App" PrivateAssets="all" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

<Target Name="ApplyFileVersion" AfterTargets="MinVer">
<PropertyGroup>
<BUILD_BUILDNUMBER Condition="'$(BUILD_BUILDNUMBER)' == ''">00000</BUILD_BUILDNUMBER>
<FileVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch).$(BUILD_BUILDNUMBER)</FileVersion>
<GITHUB_RUN_NUMBER Condition="'$(GITHUB_RUN_NUMBER)' == ''">0</GITHUB_RUN_NUMBER>
<FileVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch).$(GITHUB_RUN_NUMBER)</FileVersion>
</PropertyGroup>
</Target>
</Project>
20 changes: 20 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Cuemon.Extensions.IO" Version="9.0.0-rc.1" />
<PackageVersion Include="Codebelt.Extensions.Xunit.App" Version="9.0.0-rc.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="MinVer" Version="6.0.0" />
<PackageVersion Include="Savvyio.Domain" Version="4.0.0-rc.1" />
<PackageVersion Include="Savvyio.Extensions.Newtonsoft.Json" Version="4.0.0-rc.1" />
<PackageVersion Include="Savvyio.Extensions.Text.Json" Version="4.0.0-rc.1" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.console" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
</ItemGroup>
</Project>
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Shared Kernel](.nuget/Codebelt.SharedKernel/icon.png)
![Shared Kernel API](.nuget/Codebelt.SharedKernel/icon.png)

# Shared Kernel
# Shared Kernel API by Codebelt

[![Shared Kernel CI/CD Pipeline](https://github.com/codebeltnet/shared-kernel/actions/workflows/pipelines.yml/badge.svg)](https://github.com/codebeltnet/shared-kernel/actions/workflows/pipelines.yml) [![codecov](https://codecov.io/gh/codebeltnet/shared-kernel/graph/badge.svg?token=xdDAkBq1s3)](https://codecov.io/gh/codebeltnet/shared-kernel) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sharedkernel&metric=alert_status)](https://sonarcloud.io/dashboard?id=sharedkernel) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=sharedkernel&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=sharedkernel) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=sharedkernel&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=sharedkernel) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=sharedkernel&metric=security_rating)](https://sonarcloud.io/dashboard?id=sharedkernel)

Expand Down Expand Up @@ -28,8 +28,9 @@ All current and future NuGet packages will publicly available at [NuGet](https:/
|:--|:-:|:-:|:-:|
| [Codebelt.SharedKernel](https://www.nuget.org/packages/Codebelt.SharedKernel/) | ![vNext](https://img.shields.io/nuget/vpre/Codebelt.SharedKernel?logo=nuget) | ![Stable](https://img.shields.io/nuget/v/Codebelt.SharedKernel?logo=nuget) | ![Downloads](https://img.shields.io/nuget/dt/Codebelt.SharedKernel?color=blueviolet&logo=nuget) |

### Contributing to Codebelt.SharedKernel
Contributions are welcome!
### Contributing to `Shared Kernel API by Codebelt`
[Contributions](.github/CONTRIBUTING.md) are welcome and appreciated.

Feel free to submit issues, feature requests, or pull requests to help improve this library.

### License
Expand Down
2 changes: 1 addition & 1 deletion src/Codebelt.SharedKernel/Codebelt.SharedKernel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Savvyio.Domain" Version="3.0.0" />
<PackageReference Include="Savvyio.Domain" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Codebelt.SharedKernel/Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Token(string value, Action<TokenOptions> setup = null) : base(Validator.C
Validator.ThrowIfNullOrWhitespace(value, message: "Value cannot be null, empty or consist only of white-space characters.");
Validator.ThrowIfLowerThan(value.Length, options.MinimumLength == 0 ? int.MinValue: options.MinimumLength, nameof(value), $"The minimum length of {nameof(value)} was not meet. {options.MinimumLength} characters are required.");
Validator.ThrowIfGreaterThan(value.Length, options.MaximumLength == 0 ? int.MaxValue: options.MaximumLength, nameof(value), $"The maximum length of {nameof(value)} was exceeded. {options.MaximumLength} characters are allowed.");
Validator.ThrowIf.ContainsAny(value, WhiteSpaceChars, message: $"White-space characters are not allowed inside {nameof(value)}.");
Validator.ThrowIfContainsAny(value, WhiteSpaceChars, message: $"White-space characters are not allowed inside {nameof(value)}.");
Validator.ThrowWhen(condition => condition.IsTrue((out string frequency) =>
{
frequency = value.Distinct().Order().FromChars();
Expand Down
2 changes: 1 addition & 1 deletion test/Codebelt.SharedKernel.Tests/ClockSkewTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Cuemon.Extensions.IO;
using Cuemon.Extensions.Xunit;
using Codebelt.Extensions.Xunit;
using Savvyio.Extensions.Newtonsoft.Json;
using Savvyio.Extensions.Text.Json;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cuemon.Extensions.IO" Version="8.3.2" />
<PackageReference Include="Savvyio.Extensions.Newtonsoft.Json" Version="3.0.0" />
<PackageReference Include="Savvyio.Extensions.Text.Json" Version="3.0.0" />
<PackageReference Include="Cuemon.Extensions.IO" />
<PackageReference Include="Savvyio.Extensions.Newtonsoft.Json" />
<PackageReference Include="Savvyio.Extensions.Text.Json" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Codebelt.SharedKernel\Codebelt.SharedKernel.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Cuemon.Extensions.Xunit.App" Version="8.3.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Cuemon.Extensions.IO;
using Cuemon.Extensions.Xunit;
using Codebelt.Extensions.Xunit;
using Savvyio.Extensions.Newtonsoft.Json;
using Savvyio.Extensions.Text.Json;
using Xunit;
Expand Down
2 changes: 1 addition & 1 deletion test/Codebelt.SharedKernel.Tests/CorrelationIdTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using Cuemon;
using Cuemon.Extensions.IO;
using Cuemon.Extensions.Xunit;
using Codebelt.Extensions.Xunit;
using Savvyio.Extensions.Newtonsoft.Json;
using Savvyio.Extensions.Text.Json;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using Cuemon.Extensions.Xunit;
using Codebelt.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using Cuemon.Extensions.Xunit;
using Codebelt.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;

Expand Down
2 changes: 1 addition & 1 deletion test/Codebelt.SharedKernel.Tests/Security/AccessKeyTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Cuemon.Extensions.IO;
using Cuemon.Extensions.Xunit;
using Codebelt.Extensions.Xunit;
using Savvyio.Extensions.Newtonsoft.Json;
using Savvyio.Extensions.Text.Json;
using Xunit;
Expand Down
2 changes: 1 addition & 1 deletion test/Codebelt.SharedKernel.Tests/Security/SecretTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using Cuemon;
using Cuemon.Extensions.IO;
using Cuemon.Extensions.Xunit;
using Codebelt.Extensions.Xunit;
using Savvyio.Extensions.Newtonsoft.Json;
using Savvyio.Extensions.Text.Json;
using Xunit;
Expand Down
2 changes: 1 addition & 1 deletion test/Codebelt.SharedKernel.Tests/TimeToLiveTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Cuemon.Extensions.IO;
using Cuemon.Extensions.Xunit;
using Codebelt.Extensions.Xunit;
using Savvyio.Extensions.Newtonsoft.Json;
using Savvyio.Extensions.Text.Json;
using Xunit;
Expand Down
2 changes: 1 addition & 1 deletion test/Codebelt.SharedKernel.Tests/TokenTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using Cuemon;
using Cuemon.Extensions.IO;
using Cuemon.Extensions.Xunit;
using Codebelt.Extensions.Xunit;
using Savvyio.Extensions.Newtonsoft.Json;
using Savvyio.Extensions.Text.Json;
using Xunit;
Expand Down
2 changes: 1 addition & 1 deletion testenvironments.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "Docker-Ubuntu",
"type": "docker",
"dockerImage": "gimlichael/ubuntu-testrunner:net6.0.420-net7.0.407-net8.0.203"
"dockerImage": "gimlichael/ubuntu-testrunner:net6.0.427-net8.0.403-9.0.100-rc.2.24474.11"
}
]
}
Loading