-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/implement new domain layer for adding step logic #1
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
blaze6950
merged 8 commits into
main
from
feature/implement-new-domain-layer-for-adding-step-logic
Jan 30, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
afcd321
feat: implement new fixed-step domains for numeric types (byte, sbyte…
f925720
feat: enhance domain logic with new tests and improvements for fixed-…
b3aea9f
feat: enhance benchmarks for performance validation
66f1a52
feat: update CI configuration to restore and build test project depen…
b5fee41
feat: refine distance calculations and add subtraction methods for fi…
2947041
feat: add subtraction methods for fixed-step domains and update workf…
f20728c
feat: enhance domain logic by adding zero-step handling and improving…
80c76a4
chore: redundant data was removed
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| name: CI/CD - Domain.Abstractions | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master, main ] | ||
| paths: | ||
| - 'src/Domain/Intervals.NET.Domain.Abstractions/**' | ||
| - '.github/workflows/domain-abstractions.yml' | ||
| pull_request: | ||
| branches: [ master, main ] | ||
| paths: | ||
| - 'src/Domain/Intervals.NET.Domain.Abstractions/**' | ||
| - '.github/workflows/domain-abstractions.yml' | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| DOTNET_VERSION: '8.x.x' | ||
| PROJECT_PATH: 'src/Domain/Intervals.NET.Domain.Abstractions/Intervals.NET.Domain.Abstractions.csproj' | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
|
||
| - name: Restore dependencies | ||
| run: dotnet restore ${{ env.PROJECT_PATH }} | ||
|
|
||
| - name: Build Domain.Abstractions | ||
| run: dotnet build ${{ env.PROJECT_PATH }} --configuration Release --no-restore | ||
|
|
||
| publish-nuget: | ||
| runs-on: ubuntu-latest | ||
| needs: build-and-test | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
|
||
| - name: Restore dependencies | ||
| run: dotnet restore ${{ env.PROJECT_PATH }} | ||
|
|
||
| - name: Build Domain.Abstractions | ||
| run: dotnet build ${{ env.PROJECT_PATH }} --configuration Release --no-restore | ||
|
|
||
| - name: Pack Domain.Abstractions | ||
| run: dotnet pack ${{ env.PROJECT_PATH }} --configuration Release --no-build --output ./artifacts | ||
|
|
||
| - name: Publish Domain.Abstractions to NuGet | ||
| run: dotnet nuget push ./artifacts/Intervals.NET.Domain.Abstractions.*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate | ||
|
|
||
| - name: Upload package artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: domain-abstractions-package | ||
| path: ./artifacts/*.nupkg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| name: CI/CD - Domain.Default | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master, main ] | ||
| paths: | ||
| - 'src/Domain/Intervals.NET.Domain.Default/**' | ||
| - 'src/Domain/Intervals.NET.Domain.Abstractions/**' | ||
| - 'tests/Intervals.NET.Domain.Default.Tests/**' | ||
| - '.github/workflows/domain-default.yml' | ||
| pull_request: | ||
| branches: [ master, main ] | ||
| paths: | ||
| - 'src/Domain/Intervals.NET.Domain.Default/**' | ||
| - 'src/Domain/Intervals.NET.Domain.Abstractions/**' | ||
| - 'tests/Intervals.NET.Domain.Default.Tests/**' | ||
| - '.github/workflows/domain-default.yml' | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| DOTNET_VERSION: '8.x.x' | ||
| PROJECT_PATH: 'src/Domain/Intervals.NET.Domain.Default/Intervals.NET.Domain.Default.csproj' | ||
| TEST_PATH: 'tests/Intervals.NET.Domain.Default.Tests/Intervals.NET.Domain.Default.Tests.csproj' | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
|
||
| - name: Restore dependencies | ||
| run: dotnet restore ${{ env.PROJECT_PATH }} | ||
|
|
||
| - name: Build Domain.Default | ||
| run: dotnet build ${{ env.PROJECT_PATH }} --configuration Release --no-restore | ||
|
|
||
| - name: Run Domain.Default tests | ||
| run: dotnet test ${{ env.TEST_PATH }} --configuration Release --verbosity normal | ||
|
|
||
| publish-nuget: | ||
| runs-on: ubuntu-latest | ||
| needs: build-and-test | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
|
||
| - name: Restore dependencies | ||
| run: dotnet restore ${{ env.PROJECT_PATH }} | ||
|
|
||
| - name: Build Domain.Default | ||
| run: dotnet build ${{ env.PROJECT_PATH }} --configuration Release --no-restore | ||
|
|
||
| - name: Pack Domain.Default | ||
| run: dotnet pack ${{ env.PROJECT_PATH }} --configuration Release --no-build --output ./artifacts | ||
|
|
||
| - name: Publish Domain.Default to NuGet | ||
| run: dotnet nuget push ./artifacts/Intervals.NET.Domain.Default.*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate | ||
|
|
||
| - name: Upload package artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: domain-default-package | ||
| path: ./artifacts/*.nupkg | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| name: CI/CD - Domain.Extensions | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master, main ] | ||
| paths: | ||
| - 'src/Domain/Intervals.NET.Domain.Extensions/**' | ||
| - 'src/Domain/Intervals.NET.Domain.Abstractions/**' | ||
| - 'src/Intervals.NET/**' | ||
| - 'tests/Intervals.NET.Domain.Extensions.Tests/**' | ||
| - '.github/workflows/domain-extensions.yml' | ||
| pull_request: | ||
| branches: [ master, main ] | ||
| paths: | ||
| - 'src/Domain/Intervals.NET.Domain.Extensions/**' | ||
| - 'src/Domain/Intervals.NET.Domain.Abstractions/**' | ||
| - 'src/Intervals.NET/**' | ||
| - 'tests/Intervals.NET.Domain.Extensions.Tests/**' | ||
blaze6950 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - '.github/workflows/domain-extensions.yml' | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| DOTNET_VERSION: '8.x.x' | ||
| PROJECT_PATH: 'src/Domain/Intervals.NET.Domain.Extensions/Intervals.NET.Domain.Extensions.csproj' | ||
| TEST_PATH: 'tests/Intervals.NET.Domain.Extensions.Tests/Intervals.NET.Domain.Extensions.Tests.csproj' | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
|
||
| - name: Restore dependencies | ||
| run: dotnet restore ${{ env.PROJECT_PATH }} | ||
|
|
||
| - name: Build Domain.Extensions | ||
| run: dotnet build ${{ env.PROJECT_PATH }} --configuration Release --no-restore | ||
|
|
||
| - name: Run Domain.Extensions tests | ||
| run: dotnet test ${{ env.TEST_PATH }} --configuration Release --verbosity normal | ||
|
|
||
| publish-nuget: | ||
| runs-on: ubuntu-latest | ||
| needs: build-and-test | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
|
||
| - name: Restore dependencies | ||
| run: dotnet restore ${{ env.PROJECT_PATH }} | ||
|
|
||
| - name: Build Domain.Extensions | ||
| run: dotnet build ${{ env.PROJECT_PATH }} --configuration Release --no-restore | ||
|
|
||
| - name: Pack Domain.Extensions | ||
| run: dotnet pack ${{ env.PROJECT_PATH }} --configuration Release --no-build --output ./artifacts | ||
|
|
||
| - name: Publish Domain.Extensions to NuGet | ||
| run: dotnet nuget push ./artifacts/Intervals.NET.Domain.Extensions.*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate | ||
|
|
||
| - name: Upload package artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: domain-extensions-package | ||
| path: ./artifacts/*.nupkg | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.