From 50cbff571d00208dd09a679f4c6bbf84250309c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E4=BA=91=E9=87=91YunjinXu?= Date: Thu, 5 Dec 2024 13:32:27 +0800 Subject: [PATCH 1/3] build(tests): upgrade all test projects to .NET 8.0 --- tests/BusiGrpcService/BusiGrpcService.csproj | 2 +- tests/Dtmcli.Tests/Dtmcli.Tests.csproj | 2 +- tests/Dtmgrpc.IntegrationTests/Dtmgrpc.IntegrationTests.csproj | 2 +- tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj | 2 +- tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/BusiGrpcService/BusiGrpcService.csproj b/tests/BusiGrpcService/BusiGrpcService.csproj index 210cbae..b896af4 100644 --- a/tests/BusiGrpcService/BusiGrpcService.csproj +++ b/tests/BusiGrpcService/BusiGrpcService.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable diff --git a/tests/Dtmcli.Tests/Dtmcli.Tests.csproj b/tests/Dtmcli.Tests/Dtmcli.Tests.csproj index 95000e0..063bd26 100644 --- a/tests/Dtmcli.Tests/Dtmcli.Tests.csproj +++ b/tests/Dtmcli.Tests/Dtmcli.Tests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 false diff --git a/tests/Dtmgrpc.IntegrationTests/Dtmgrpc.IntegrationTests.csproj b/tests/Dtmgrpc.IntegrationTests/Dtmgrpc.IntegrationTests.csproj index 7ae908a..28b9aec 100644 --- a/tests/Dtmgrpc.IntegrationTests/Dtmgrpc.IntegrationTests.csproj +++ b/tests/Dtmgrpc.IntegrationTests/Dtmgrpc.IntegrationTests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 false diff --git a/tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj b/tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj index d46e68c..428f82a 100644 --- a/tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj +++ b/tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 false diff --git a/tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj b/tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj index 08f9171..f6bd27d 100644 --- a/tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj +++ b/tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable From f8dd1e8ddbf7472c42ce386f691ac1b73dc8d5d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E4=BA=91=E9=87=91YunjinXu?= Date: Thu, 5 Dec 2024 13:54:45 +0800 Subject: [PATCH 2/3] ci: update .NET version to8.0.x --- .github/workflows/build.yml | 9 +++++---- .github/workflows/release_stable.yml | 2 +- .github/workflows/release_unstable.yml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7705c4..3b02b5c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,7 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: | + 8.0.x 7.0.x 6.0.x 3.1.x @@ -45,11 +46,11 @@ jobs: # dotnet test --framework=net6.0 tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj --collect:"XPlat Code Coverage" # dotnet test --framework=net6.0 tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj --collect:"XPlat Code Coverage" - - name: Run tests on net7.0 + - name: Run tests on net8.0 run: | - dotnet test --framework=net7.0 tests/Dtmcli.Tests/Dtmcli.Tests.csproj --collect:"XPlat Code Coverage" - dotnet test --framework=net7.0 tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj --collect:"XPlat Code Coverage" - dotnet test --framework=net7.0 tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj --collect:"XPlat Code Coverage" + dotnet test --framework=net8.0 tests/Dtmcli.Tests/Dtmcli.Tests.csproj --collect:"XPlat Code Coverage" + dotnet test --framework=net8.0 tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj --collect:"XPlat Code Coverage" + dotnet test --framework=net8.0 tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj --collect:"XPlat Code Coverage" - name: Prepare Codecov continue-on-error: true diff --git a/.github/workflows/release_stable.yml b/.github/workflows/release_stable.yml index 3a4d084..77451b8 100644 --- a/.github/workflows/release_stable.yml +++ b/.github/workflows/release_stable.yml @@ -15,7 +15,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Build with dotnet run: | dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmcli/Dtmcli.csproj diff --git a/.github/workflows/release_unstable.yml b/.github/workflows/release_unstable.yml index 8b4691a..1c7177d 100644 --- a/.github/workflows/release_unstable.yml +++ b/.github/workflows/release_unstable.yml @@ -15,7 +15,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Build with dotnet run: | dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmcli/Dtmcli.csproj From 0e26abcf11cd3fdcbfe8c402632d7cb61fac40c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E4=BA=91=E9=87=91YunjinXu?= Date: Thu, 5 Dec 2024 22:29:35 +0800 Subject: [PATCH 3/3] build(samples): update target framework to .NET 8.0 - Update DtmOnDaprSample and DtmSample projects from .NET 7.0 to .NET 8.0 --- samples/DtmOnDaprSample/DtmOnDaprSample.csproj | 2 +- samples/DtmSample/DtmSample.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/DtmOnDaprSample/DtmOnDaprSample.csproj b/samples/DtmOnDaprSample/DtmOnDaprSample.csproj index 2047817..e640a25 100644 --- a/samples/DtmOnDaprSample/DtmOnDaprSample.csproj +++ b/samples/DtmOnDaprSample/DtmOnDaprSample.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 true $(NoWarn);1591 8704306e-de65-470d-89b2-2b7b65ff3b64 diff --git a/samples/DtmSample/DtmSample.csproj b/samples/DtmSample/DtmSample.csproj index e3612ed..a648294 100644 --- a/samples/DtmSample/DtmSample.csproj +++ b/samples/DtmSample/DtmSample.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 true $(NoWarn);1591 8704306e-de65-470d-89b2-2b7b65ff3b64