Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
e276d85
add git ignore
jaak0b Sep 14, 2025
660c206
add git ignore
jaak0b Sep 14, 2025
0629152
add git ignore
jaak0b Sep 14, 2025
5d45b2a
add code
jaak0b Sep 14, 2025
e536bd9
Update README.md
jaak0b Sep 14, 2025
2039dfd
Update README.md
jaak0b Sep 14, 2025
e89087f
Create dotnet.yml
jaak0b Sep 14, 2025
b0759d3
Update dotnet.yml
jaak0b Sep 14, 2025
81459b6
update TargetFramework
jaak0b Sep 14, 2025
b78ab3d
Merge branch 'Release/1.0.0' of https://github.com/Jakob-Eichberger/Z…
jaak0b Sep 14, 2025
830360e
Update README.md
jaak0b Sep 14, 2025
df75b36
Update README.md
jaak0b Sep 14, 2025
b76282f
Update Nuget PackageID and version
jaak0b Sep 14, 2025
46bebe2
init docfx
jaak0b Sep 14, 2025
06fdc34
update docfx
jaak0b Sep 14, 2025
39ef8f2
Create BuildAndDeployDoc.yml
jaak0b Sep 14, 2025
7342ed1
Update BuildAndDeployDoc.yml
jaak0b Sep 14, 2025
a3830ac
Update BuildAndDeployDoc.yml
jaak0b Sep 14, 2025
c3b9c10
Update BuildAndDeployDoc.yml
jaak0b Sep 14, 2025
4e33a44
Update BuildAndDeployDoc.yml
jaak0b Sep 14, 2025
0f78dcd
Update BuildAndDeployDoc.yml
jaak0b Sep 14, 2025
7ddfc91
rename root folder
jaak0b Sep 14, 2025
854eb69
Merge branch 'Release/5.0.0' of https://github.com/Jakob-Eichberger/Z…
jaak0b Sep 14, 2025
8a83cee
update docfx.json
jaak0b Sep 14, 2025
d8c2970
fix build
jaak0b Sep 14, 2025
69236ba
Update BuildAndDeployDoc.yml
jaak0b Sep 14, 2025
f07bcd2
Update README.md
jaak0b Sep 14, 2025
a64368b
Update BuildAndDeployDoc.yml
jaak0b Sep 14, 2025
d2ddc16
Create MutationTesting.yml
jaak0b Sep 15, 2025
48ef8b6
Update MutationTesting.yml
jaak0b Sep 15, 2025
5fe7dce
Update MutationTesting.yml
jaak0b Sep 15, 2025
a2020b4
Update MutationTesting.yml
jaak0b Sep 15, 2025
633f704
Update MutationTesting.yml
jaak0b Sep 15, 2025
c922c3f
Update MutationTesting.yml
jaak0b Sep 15, 2025
f242b48
Update MutationTesting.yml
jaak0b Sep 15, 2025
4b4e6c9
Update MutationTesting.yml
jaak0b Sep 15, 2025
c2429c0
Update MutationTesting.yml
jaak0b Sep 15, 2025
eb250fe
Update MutationTesting.yml
jaak0b Sep 15, 2025
b811609
Update MutationTesting.yml
jaak0b Sep 15, 2025
479a89a
Update MutationTesting.yml
jaak0b Sep 15, 2025
11dda2e
Update MutationTesting.yml
jaak0b Sep 15, 2025
7bf62e0
Update MutationTesting.yml
jaak0b Sep 15, 2025
824fbc2
Update MutationTesting.yml
jaak0b Sep 15, 2025
030ac8d
Update MutationTesting.yml
jaak0b Sep 15, 2025
983c098
Update MutationTesting.yml
jaak0b Sep 15, 2025
30eb94c
Update MutationTesting.yml
jaak0b Sep 15, 2025
701e42a
Update MutationTesting.yml
jaak0b Sep 15, 2025
44c4cd9
Update MutationTesting.yml
jaak0b Sep 15, 2025
8d5e772
Update MutationTesting.yml
jaak0b Sep 15, 2025
41b535d
Update MutationTesting.yml
jaak0b Sep 15, 2025
6d928a2
Update MutationTesting.yml
jaak0b Sep 15, 2025
20b7ffa
Update MutationTesting.yml
jaak0b Sep 15, 2025
4cdbcd2
Update dotnet.yml
jaak0b Sep 15, 2025
a449c2d
Update dotnet.yml
jaak0b Sep 15, 2025
a02a3fa
Update MutationTesting.yml
jaak0b Sep 15, 2025
e2aa716
Update MutationTesting.yml
jaak0b Sep 15, 2025
6ddc5ed
Update MutationTesting.yml
jaak0b Sep 15, 2025
4f78b2d
Update README.md
jaak0b Sep 15, 2025
f37d81c
Update MutationTesting.yml
jaak0b Sep 15, 2025
3e56ef1
Update MutationTesting.yml
jaak0b Sep 15, 2025
9387b08
Update README.md
jaak0b Sep 15, 2025
9b2ca81
Update README.md
jaak0b Sep 15, 2025
b874f1c
Update and rename dotnet.yml to Build.yml
jaak0b Sep 15, 2025
f329d0c
Update README.md
jaak0b Sep 15, 2025
0747636
upgrade Newtonsoft.Json
jaak0b Oct 6, 2025
72134fa
Use ushort for LocoAddress
jaak0b Oct 6, 2025
07627e6
Merge branch 'Release/5.0.0' of https://github.com/Jakob-Eichberger/Z…
jaak0b Oct 6, 2025
53f3171
Update Build.yml
jaak0b Oct 6, 2025
60f9d48
Update Build.yml
jaak0b Oct 6, 2025
9b55431
Update Build.yml
jaak0b Oct 6, 2025
408f19a
Add GitVersion config file
jaak0b Oct 6, 2025
51438ce
change gitversion config
jaak0b Oct 6, 2025
5a2dff3
change gitversion config
jaak0b Oct 6, 2025
3030d6f
change gitversion config
jaak0b Oct 6, 2025
23e21d3
change gitversion config
jaak0b Oct 6, 2025
695f5a0
change gitversion config
jaak0b Oct 6, 2025
5aeec88
Update Build.yml
jaak0b Oct 6, 2025
f45dcc7
change configurations
jaak0b Oct 6, 2025
ae1691e
Merge branch 'release/5.0.0' of https://github.com/Jakob-Eichberger/Z…
jaak0b Oct 6, 2025
245f72a
Update Build.yml
jaak0b Oct 6, 2025
fd4ac04
Update Build.yml
jaak0b Oct 6, 2025
fb4f669
Update Build.yml
jaak0b Oct 6, 2025
28ea651
dont create nuget for console
jaak0b Oct 6, 2025
58b6a9e
Update MutationTesting.yml
jaak0b Oct 6, 2025
8043b22
Update BuildAndDeployDoc.yml
jaak0b Oct 6, 2025
b59299d
Create main.yml
jaak0b Oct 6, 2025
a01110b
Update Build.yml
jaak0b Oct 6, 2025
b8c020e
Update main.yml
jaak0b Oct 6, 2025
c9e165f
Update Build.yml
jaak0b Oct 6, 2025
d163815
remove none needed workflow
jaak0b Oct 6, 2025
857eddb
Update Build.yml
jaak0b Oct 6, 2025
e5360f8
Update Build.yml
jaak0b Oct 8, 2025
1a34998
VersionResponseHandler correctly parses version. FirmwareVersion supp…
jaak0b Oct 8, 2025
512ef0d
Cleanup
jaak0b Oct 8, 2025
e4aedc2
Update README.md
jaak0b Oct 10, 2025
beddeb0
Update README.md
jaak0b Oct 10, 2025
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
84 changes: 84 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: Build

on:
push:
pull_request:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for GitVersion to access full commit history

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Setup GitVersion
uses: GitTools/actions/gitversion/setup@v0.9.10
with:
versionSpec: '5.x'

- name: Run GitVersion
id: gitversion
uses: GitTools/actions/gitversion/execute@v0.9.10

- name: Restore dependencies
run: dotnet restore src/Z21.sln

- name: Build for testing (Debug)
run: dotnet build src/Z21.sln --no-restore /p:Version=${{ steps.gitversion.outputs.semVer }}

- name: Test
run: dotnet test src/Z21.sln --no-build --verbosity normal

- name: Build for packaging (Release)
run: dotnet build src/Z21.sln --no-restore --configuration Release /p:Version=${{ steps.gitversion.outputs.semVer }}

- name: Tag commit with GitVersion
if: github.event_name == 'push'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag v${{ steps.gitversion.outputs.semVer }}
git push origin v${{ steps.gitversion.outputs.semVer }}

- name: Pack Z21.sln NuGet package
run: |
dotnet pack src/Z21.sln --no-build --configuration Release \
/p:PackageVersion=${{ steps.gitversion.outputs.semVer }} \
/p:Version=${{ steps.gitversion.outputs.semVer }} \
--output ./nupkgs

- name: Pack Z21.DependencyInjection NuGet package
run: |
dotnet pack src/Z21.DependencyInjection/Z21.DependencyInjection.csproj --no-build --configuration Release \
/p:PackageVersion=${{ steps.gitversion.outputs.semVer }} \
/p:Version=${{ steps.gitversion.outputs.semVer }} \
--output ./nupkgs

- name: Check commit message
id: commitcheck
run: |
echo "commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT

- name: Push packages to NuGet
if: |
github.ref == 'refs/heads/main' ||
(startsWith(github.ref, 'refs/heads/release/') &&
contains(steps.commitcheck.outputs.commit_message, '[publishnuget]'))
run: |
for pkg in ./nupkgs/*.nupkg; do
dotnet nuget push "$pkg" \
--api-key ${{ secrets.NUGET_API_KEY }} \
--source https://api.nuget.org/v3/index.json
done
41 changes: 41 additions & 0 deletions .github/workflows/BuildAndDeployDoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Github Pages

on:
push:
branches: [ "release/**", "main" ]
pull_request:
branches: [ "release/**", "main" ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Extract Version
id: vars
run: |
RAW_REF="${GITHUB_REF#refs/heads/}"
VERSION="${RAW_REF#Release/}"
CLEAN_VERSION=$(echo "$VERSION" | cut -d'-' -f1)
echo "version=$CLEAN_VERSION" >> $GITHUB_OUTPUT

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'

- name: Install DocFX
run: dotnet tool install -g docfx

- name: Build Docs
run: docfx src/docfx.json

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src/_site
destination_dir: ${{ steps.vars.outputs.version }}
37 changes: 37 additions & 0 deletions .github/workflows/MutationTesting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Mutation Testing

on:
push:
pull_request:
workflow_dispatch:

jobs:
mutation-test:
runs-on: ubuntu-latest

env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Install Stryker.NET
run: dotnet tool install -g dotnet-stryker

- name: Run mutation tests
run: |
cd src/Z21.Client.UnitTest
dotnet stryker --reporter html --output ../../stryker-report --mutation-level Advanced --threshold-high 90 --threshold-low 80 --break-at 75

- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: stryker-html-report
path: stryker-report/reports/mutation-report.html
Loading
Loading