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
4 changes: 2 additions & 2 deletions .docfx/BuildDocfxImage.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$version = minver -i
$version = minver -i -t v -v w
docfx metadata docfx.json
docker buildx build -t sharedkernel-docfx:$version --platform linux/arm64,linux/amd64 --load -f Dockerfile.docfx . # --progress plain
docker buildx build -t sharedkernel-docfx:$version --platform linux/arm64,linux/amd64 --load -f Dockerfile.docfx .
get-childItem -recurse -path api -include *.yml, .manifest | remove-item
4 changes: 2 additions & 2 deletions .docfx/Dockerfile.docfx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM nginx:1.26.0-alpine AS base
FROM nginx:1.27.0-alpine AS base
RUN rm -rf /usr/share/nginx/html/*

FROM codebeltnet/docfx:2.75.3 AS build
FROM codebeltnet/docfx:2.77.0 AS build

ADD [".", "docfx"]

Expand Down
2 changes: 1 addition & 1 deletion .docfx/PublishDocfxImage.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$version = minver -i
$version = minver -i -t v -v w
docker tag sharedkernel-docfx:$version jcr.codebelt.net/geekle/sharedkernel-docfx:$version
docker push jcr.codebelt.net/geekle/sharedkernel-docfx:$version
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

68 changes: 36 additions & 32 deletions .github/workflows/pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Shared Kernel CI/CD Pipeline
on:
push:
branches: [main]
paths-ignore:
- .codecov
- .docfx
- .github
- .nuget
pull_request:
branches: [main]
paths-ignore:
- .github/**
- .nuget/**
- '**.md'
workflow_dispatch:
inputs:
configuration:
Expand All @@ -24,6 +21,10 @@ jobs:
build:
name: 🛠️ Build
runs-on: ubuntu-22.04
strategy:
matrix:
configuration: [Debug, Release]
framework: [net8.0]
outputs:
version: ${{ steps.minver-calculate.outputs.version }}
steps:
Expand All @@ -32,13 +33,15 @@ jobs:

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

- name: Install MinVer
uses: codebeltnet/dotnet-tool-install-minver@v1

- id: minver-calculate
name: Calculate Version
uses: codebeltnet/minver-calculate@v1
uses: codebeltnet/minver-calculate@v2

- name: Download sharedkernel.snk file
uses: codebeltnet/gcp-download-file@v1
Expand All @@ -48,17 +51,13 @@ jobs:
objectName: sharedkernel.snk

- name: Restore Dependencies
uses: codebeltnet/dotnet-restore@v1

- name: Build for Preview
uses: codebeltnet/dotnet-build@v1
with:
configuration: Debug
uses: codebeltnet/dotnet-restore@v2

- name: Build for Production
uses: codebeltnet/dotnet-build@v1
- name: Build for ${{ matrix.framework }} (${{ matrix.configuration }})
uses: codebeltnet/dotnet-build@v2
with:
configuration: Release
configuration: ${{ matrix.configuration }}
framework: ${{ matrix.framework }}

pack:
name: 📦 Pack
Expand All @@ -67,9 +66,14 @@ jobs:
matrix:
configuration: [Debug, Release]
needs: [build]
steps:
steps:
- name: Install .NET
uses: codebeltnet/install-dotnet@v1
with:
includePreview: true

- name: Pack for ${{ matrix.configuration }}
uses: codebeltnet/dotnet-pack@v1
uses: codebeltnet/dotnet-pack@v2
with:
configuration: ${{ matrix.configuration }}
uploadPackedArtifact: true
Expand All @@ -79,29 +83,27 @@ jobs:
name: 🧪 Test
needs: [build]
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-2022]
configuration: [Debug, Release]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: codebeltnet/git-checkout@v1

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

- name: Install .NET Tool - Report Generator
uses: codebeltnet/dotnet-tool-install-reportgenerator@v1

- name: Test with Debug build
uses: codebeltnet/dotnet-test@v1
- name: Test with ${{ matrix.configuration }} build
uses: codebeltnet/dotnet-test@v3
with:
configuration: Debug
buildSwitches: -p:SkipSignAssembly=true

- name: Test with Release build
uses: codebeltnet/dotnet-test@v1
with:
configuration: Release
configuration: ${{ matrix.configuration }}
buildSwitches: -p:SkipSignAssembly=true

sonarcloud:
Expand All @@ -114,12 +116,14 @@ jobs:

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

- name: Install .NET Tool - Sonar Scanner
uses: codebeltnet/dotnet-tool-install-sonarscanner@v1

- name: Restore Dependencies
uses: codebeltnet/dotnet-restore@v1
uses: codebeltnet/dotnet-restore@v2

- name: Run SonarCloud Analysis
uses: codebeltnet/sonarcloud-scan@v1
Expand All @@ -130,7 +134,7 @@ jobs:
version: ${{ needs.build.outputs.version }}

- name: Build
uses: codebeltnet/dotnet-build@v1
uses: codebeltnet/dotnet-build@v2
with:
buildSwitches: -p:SkipSignAssembly=true
uploadBuildArtifact: false
Expand Down Expand Up @@ -166,13 +170,13 @@ jobs:
uses: codebeltnet/install-dotnet@v1

- name: Restore Dependencies
uses: codebeltnet/dotnet-restore@v1
uses: codebeltnet/dotnet-restore@v2

- name: Prepare CodeQL SAST Analysis
uses: codebeltnet/codeql-scan@v1

- name: Build
uses: codebeltnet/dotnet-build@v1
uses: codebeltnet/dotnet-build@v2
with:
buildSwitches: -p:SkipSignAssembly=true
uploadBuildArtifact: false
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.3.0
Availability: .NET 8

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

Version: 0.2.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.3.0] - 2024-09-08

#### Codebelt.SharedKernel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix required: Adjust heading level.

The heading for Codebelt.SharedKernel should be an h3 to maintain proper incremental heading levels.

Apply this diff to adjust the heading level:

-#### Codebelt.SharedKernel
+### Codebelt.SharedKernel
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
#### Codebelt.SharedKernel
### Codebelt.SharedKernel
Tools
Markdownlint

9-9: Expected: h3; Actual: h4
Heading levels should only increment by one level at a time

(MD001, heading-increment)


Purely an ALM release. No changes to the codebase.

## [0.2.0] - 2024-04-11

### Added
Expand Down
14 changes: 7 additions & 7 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Copyright>Copyright © Geekle 2024. All rights reserved.</Copyright>
<Authors>gimlichael</Authors>
<Company>Geekle</Company>
<Product>Codebelt - Shared Kernel (DDD)</Product>
<Product>Codebelt Shared Kernel (DDD)</Product>
<PackageIcon>icon.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://www.codebelt.net/</PackageProjectUrl>
Expand All @@ -40,7 +40,7 @@

<ItemGroup Condition="'$(IsTestProject)' == 'false'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="MinVer" Version="5.0.0" PrivateAssets="all" />
<PackageReference Include="MinVer" Version="6.0.0" PrivateAssets="all" />
<None Include="..\..\.nuget\$(MSBuildProjectName)\icon.png" Pack="true" Visible="false" PackagePath="\" />
<None Include="..\..\.nuget\$(MSBuildProjectName)\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
Expand All @@ -59,10 +59,10 @@
</PropertyGroup>

<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.1" />
<PackageReference Include="xunit.runner.console" Version="2.7.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8" />
<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">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand All @@ -71,7 +71,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Cuemon.Extensions.Xunit.App" Version="8.3.0" />
<PackageReference Include="Cuemon.Extensions.Xunit.App" Version="8.3.2" />
</ItemGroup>

</Project>
9 changes: 0 additions & 9 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
<Project>
<Target Name="CoverletGetPathMap"
DependsOnTargets="InitializeSourceRootMappedPaths"
Returns="@(_LocalTopLevelSourceRoot)"
Condition="'$(DeterministicSourcePaths)' == 'true'">
<ItemGroup>
<_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/>
</ItemGroup>
</Target>

<PropertyGroup>
<PackageReleaseNotesFile>..\..\.nuget\$(MSBuildProjectName)\PackageReleaseNotes.txt</PackageReleaseNotesFile>
</PropertyGroup>
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="2.2.0" />
<PackageReference Include="Savvyio.Domain" Version="3.0.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cuemon.Extensions.IO" Version="8.3.0" />
<PackageReference Include="Savvyio.Extensions.Newtonsoft.Json" Version="2.2.0" />
<PackageReference Include="Savvyio.Extensions.Text.Json" Version="2.2.0" />
<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" />
</ItemGroup>

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

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

</Project>