From 0f45b6b463f09cce75fed466fca64038ed90e320 Mon Sep 17 00:00:00 2001 From: just Date: Tue, 11 Nov 2025 22:32:04 +0400 Subject: [PATCH] added dotnet 10 support --- .gitea/workflows/publish-nuget.yaml | 10 +++++--- .gitea/workflows/test-dotnet.yaml | 37 ++++++++++++++++++++++------- Railway/Railway.csproj | 8 +++---- Raliway.Tests/Raliway.Tests.csproj | 11 ++++----- 4 files changed, 43 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/publish-nuget.yaml b/.gitea/workflows/publish-nuget.yaml index 12edbbf..290adde 100644 --- a/.gitea/workflows/publish-nuget.yaml +++ b/.gitea/workflows/publish-nuget.yaml @@ -9,14 +9,18 @@ on: jobs: publish: runs-on: ubuntu-latest + name: .NET tests + + env: + DOTNET_CLI_TELEMETRY_OPTOUT: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - name: Setup .NET - uses: https://github.com/actions/setup-dotnet@v3 + uses: https://github.com/actions/setup-dotnet@v4 with: - dotnet-version: 9.x + dotnet-version: 10.x - name: Restore dependencies run: dotnet restore Railway/Railway.csproj diff --git a/.gitea/workflows/test-dotnet.yaml b/.gitea/workflows/test-dotnet.yaml index 3dfb5d8..c5d303b 100644 --- a/.gitea/workflows/test-dotnet.yaml +++ b/.gitea/workflows/test-dotnet.yaml @@ -14,28 +14,47 @@ on: jobs: test: runs-on: ubuntu-latest + name: .NET tests + + env: + DOTNET_CLI_TELEMETRY_OPTOUT: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - name: Setup .NET - uses: https://github.com/actions/setup-dotnet@v3 + uses: https://github.com/actions/setup-dotnet@v4 with: - dotnet-version: 9.x + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x - name: Restore dependencies run: dotnet restore - - name: Build - run: dotnet build --no-restore + - name: Build .NET 10.0 + run: dotnet build --no-restore --framework net10.0 --configuration Release ./Raliway.Tests/Raliway.Tests.csproj - - name: Test - run: dotnet test --no-build --verbosity normal --logger trx --results-directory "TestResults-9.x" + - name: Build .NET 9.0 + run: dotnet build --no-restore --framework net9.0 --configuration Release ./Raliway.Tests/Raliway.Tests.csproj + + - name: Build .NET 8.0 + run: dotnet build --no-restore --framework net8.0 --configuration Release ./Raliway.Tests/Raliway.Tests.csproj + + - name: Test .NET 10.0 + run: dotnet run --no-build --framework net10.0 --configuration Release --project ./Raliway.Tests/Raliway.Tests.csproj -- -trx TestResults/results-net10.trx + + - name: Test .NET 9.0 + run: dotnet run --no-build --framework net9.0 --configuration Release --project ./Raliway.Tests/Raliway.Tests.csproj -- -trx TestResults/results-net9.trx + + - name: Test .NET 8.0 + run: dotnet run --no-build --framework net8.0 --configuration Release --project ./Raliway.Tests/Raliway.Tests.csproj -- -trx TestResults/results-net8.trx - name: Upload dotnet test results uses: actions/upload-artifact@v3 with: - name: dotnet-results-9.x - path: TestResults-9.x + name: test-results + path: TestResults if: ${{ always() }} retention-days: 30 diff --git a/Railway/Railway.csproj b/Railway/Railway.csproj index bb3c8c5..657ec05 100644 --- a/Railway/Railway.csproj +++ b/Railway/Railway.csproj @@ -1,13 +1,13 @@ - net6.0;net7.0;net8.0;net9.0 - 10.0 + net8.0;net9.0;net10.0 + 12.0 enable enable Just.Railway Just.Railway - + Base for railway-oriented programming in .NET. Package includes Result object, Error class and most of the common extensions. railway-oriented;functional;result-pattern;result-object;error-handling JustFixMe @@ -15,7 +15,7 @@ LICENSE README.md https://github.com/JustFixMe/Just.Railway/ - + true 1.0.0 $(VersionSuffix) diff --git a/Raliway.Tests/Raliway.Tests.csproj b/Raliway.Tests/Raliway.Tests.csproj index 8b5cf41..2f53680 100644 --- a/Raliway.Tests/Raliway.Tests.csproj +++ b/Raliway.Tests/Raliway.Tests.csproj @@ -1,22 +1,19 @@ - net9.0 + net8.0;net9.0;net10.0 enable enable + Exe Just.Railway.Tests false + true - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - + runtime; build; native; contentfiles; analyzers; buildtransitive all