From 85721b9769d9280217f598e1798d0c99739a2500 Mon Sep 17 00:00:00 2001 From: just Date: Tue, 11 Nov 2025 21:48:35 +0400 Subject: [PATCH] added net10.0 support --- .gitea/workflows/publish-nuget.yaml | 9 +++++--- .gitea/workflows/test-dotnet.yaml | 33 ++++++++++++++++++----------- Core.Tests/Core.Tests.csproj | 2 +- Core/Core.csproj | 2 +- 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/publish-nuget.yaml b/.gitea/workflows/publish-nuget.yaml index 3373ad2..37792c4 100644 --- a/.gitea/workflows/publish-nuget.yaml +++ b/.gitea/workflows/publish-nuget.yaml @@ -10,13 +10,16 @@ jobs: publish: runs-on: ubuntu-latest + 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 Core/Core.csproj diff --git a/.gitea/workflows/test-dotnet.yaml b/.gitea/workflows/test-dotnet.yaml index f5b8e99..1ca5703 100644 --- a/.gitea/workflows/test-dotnet.yaml +++ b/.gitea/workflows/test-dotnet.yaml @@ -14,11 +14,8 @@ on: jobs: test: runs-on: ubuntu-latest - name: .NET ${{ matrix.dotnet-version }} + name: .NET tests - strategy: - matrix: - dotnet-version: [ '8.0', '9.0' ] env: DOTNET_CLI_TELEMETRY_OPTOUT: true @@ -28,21 +25,33 @@ jobs: - name: Setup .NET uses: https://github.com/actions/setup-dotnet@v4 with: - dotnet-version: ${{ matrix.dotnet-version }}.x + dotnet-version: 10.0.x - name: Restore dependencies - run: dotnet restore -p:TargetFramework=net${{ matrix.dotnet-version }} + run: dotnet restore - - name: Build - run: dotnet build --framework net${{ matrix.dotnet-version }} --configuration Release ./Core.Tests/Core.Tests.csproj + - name: Build .NET 10.0 + run: dotnet build --no-restore --framework net10.0 --configuration Release ./Core.Tests/Core.Tests.csproj - - name: Test - run: dotnet run --no-build --framework net${{ matrix.dotnet-version }} --configuration Release --project ./Core.Tests/Core.Tests.csproj -- -trx results-net${{ matrix.dotnet-version }}.trx + - name: Build .NET 9.0 + run: dotnet build --no-restore --framework net9.0 --configuration Release ./Core.Tests/Core.Tests.csproj + + - name: Build .NET 8.0 + run: dotnet build --no-restore --framework net8.0 --configuration Release ./Core.Tests/Core.Tests.csproj + + - name: Test .NET 10.0 + run: dotnet run --no-build --framework net10.0 --configuration Release --project ./Core.Tests/Core.Tests.csproj -- -trx TestResults/results-net10.trx + + - name: Test .NET 9.0 + run: dotnet run --no-build --framework net9.0 --configuration Release --project ./Core.Tests/Core.Tests.csproj -- -trx TestResults/results-net9.trx + + - name: Test .NET 8.0 + run: dotnet run --no-build --framework net8.0 --configuration Release --project ./Core.Tests/Core.Tests.csproj -- -trx TestResults/results-net8.trx - name: Upload dotnet test results uses: actions/upload-artifact@v3 with: - name: results-net${{ matrix.dotnet-version }} - path: results-net${{ matrix.dotnet-version }}.trx + name: test-results + path: TestResults if: ${{ always() }} retention-days: 30 diff --git a/Core.Tests/Core.Tests.csproj b/Core.Tests/Core.Tests.csproj index bb1aab0..acb1688 100644 --- a/Core.Tests/Core.Tests.csproj +++ b/Core.Tests/Core.Tests.csproj @@ -1,7 +1,7 @@ - net8.0;net9.0 + net8.0;net9.0;net10.0 enable enable Exe diff --git a/Core/Core.csproj b/Core/Core.csproj index d139347..710389b 100644 --- a/Core/Core.csproj +++ b/Core/Core.csproj @@ -1,7 +1,7 @@  - net8.0;net9.0 + net8.0;net9.0;net10.0 enable enable Just.Core