Skip to content

Commit c7413cf

Browse files
Add net10.0 to frameworks and migrate projects and pipelines (#66)
* add net10.0 to frameworks and migrate projects and pipelines * update workflows for net10 * Fix workflow commands * update workflows with setup-dotnet * macos dotnet setup
1 parent da08baa commit c7413cf

File tree

12 files changed

+39
-27
lines changed

12 files changed

+39
-27
lines changed

.github/copilot-instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ You are a senior maintainer of **ClickHouse.Driver** (official C#/.NET ADO.NET c
88
### Project Context
99
- **ClickHouse.Driver** is the official ADO.NET client for ClickHouse database
1010
- **Critical priorities**: Stability, correctness, performance, and comprehensive testing
11-
- **Tech stack**: C#/.NET targeting `net462`, `net48`, `netstandard2.1`, `net6.0`, `net8.0`, `net9.0`
12-
- **Tests run on**: `net6.0`, `net8.0`, `net9.0`; Integration tests: `net9.0`; Benchmarks: `net9.0`
11+
- **Tech stack**: C#/.NET targeting `net462`, `net48`, `netstandard2.1`, `net6.0`, `net8.0`, `net9.0`, `net10.0`
12+
- **Tests run on**: `net6.0`, `net8.0`, `net9.0`, `net10.0`; Integration tests: `net10.0`; Benchmarks: `net10.0`
1313

1414
### Solution Structure
1515
```
@@ -22,7 +22,7 @@ ClickHouse.Driver.sln
2222
│ ├── Utility/ # Schema, feature detection, extensions
2323
│ └── PublicAPI/ # Public API surface tracking (analyzer-enforced)
2424
├── ClickHouse.Driver.Tests/ # NUnit tests (multi-framework)
25-
├── ClickHouse.Driver.IntegrationTests/ # Integration tests (net9.0)
25+
├── ClickHouse.Driver.IntegrationTests/ # Integration tests (net10.0)
2626
└── ClickHouse.Driver.Benchmark/ # BenchmarkDotNet performance tests
2727
```
2828

.github/workflows/benchmark.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ jobs:
3636
${{ runner.os }}-nuget-
3737
3838
- name: Setup .NET Core
39-
uses: actions/setup-dotnet@v4
39+
uses: actions/setup-dotnet@v5
4040
with:
4141
dotnet-version: |
42-
6.x
43-
8.x
44-
9.x
42+
10.x
4543
4644
- name: Run
47-
run: dotnet run --project ClickHouse.Driver.Benchmark/ClickHouse.Driver.Benchmark.csproj --framework net9.0 --configuration Release -- --join --filter "*" --artifacts . --job Short
45+
run: dotnet run --project ClickHouse.Driver.Benchmark/ClickHouse.Driver.Benchmark.csproj --framework net10.0 --configuration Release -- --join --filter "*" --artifacts . --job Short
4846
env:
4947
CLICKHOUSE_CONNECTION: Host=localhost;Port=8123;Username=test;Password=test1234
5048

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# queries: ./path/to/local/query, your-org/your-repo/queries@main
3737

3838
- name: Setup .NET
39-
uses: actions/setup-dotnet@v4
39+
uses: actions/setup-dotnet@v5
4040
with:
4141
dotnet-version: 9.0.x
4242

.github/workflows/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
${{ runner.os }}-nuget-
4343
4444
- name: Setup .NET Core
45-
uses: actions/setup-dotnet@v4
45+
uses: actions/setup-dotnet@v5
4646
with:
4747
dotnet-version: |
48-
9.x
48+
10.x
4949
5050
- name: Build examples
5151
run: dotnet build examples/ClickHouse.Driver.Examples.csproj --configuration Release

.github/workflows/reusable.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_call:
55
inputs:
66
framework:
7-
default: net9.0
7+
default: net10.0
88
required: false
99
type: string
1010
clickhouse-version:
@@ -46,14 +46,15 @@ jobs:
4646
${{ runner.os }}-nuget-
4747
4848
- name: Setup .NET Core
49-
uses: actions/setup-dotnet@v4
49+
uses: actions/setup-dotnet@v5
5050
with:
5151
dotnet-version: |
5252
3.1.x
5353
5.x
5454
6.x
5555
8.x
5656
9.x
57+
10.x
5758
5859
- name: Test
5960
run: dotnet test ClickHouse.Driver.Tests/ClickHouse.Driver.Tests.csproj --framework ${{ inputs.framework }} --configuration Release --verbosity normal --logger GitHubActions /clp:ErrorsOnly /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:SkipAutoProps=true

.github/workflows/tests.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
strategy:
4848
fail-fast: false
4949
matrix:
50-
framework: ["net9.0", "net6.0"]
50+
framework: ["net10.0", "net9.0", "net6.0"]
5151

5252
integration:
5353
name: Integration Tests
@@ -80,13 +80,13 @@ jobs:
8080
${{ runner.os }}-nuget-
8181
8282
- name: Setup .NET Core
83-
uses: actions/setup-dotnet@v4
83+
uses: actions/setup-dotnet@v5
8484
with:
8585
dotnet-version: |
86-
9.x
86+
10.x
8787
8888
- name: Test
89-
run: dotnet test ClickHouse.Driver.IntegrationTests/ClickHouse.Driver.IntegrationTests.csproj --framework net9.0 --configuration Release --verbosity normal --logger GitHubActions /clp:ErrorsOnly /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:SkipAutoProps=true
89+
run: dotnet test ClickHouse.Driver.IntegrationTests/ClickHouse.Driver.IntegrationTests.csproj --framework net10.0 --configuration Release --verbosity normal --logger GitHubActions /clp:ErrorsOnly /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:SkipAutoProps=true
9090
env:
9191
CLICKHOUSE_CONNECTION: Host=localhost;Port=8123;Username=test;Password=test1234
9292
CLICKHOUSE_VERSION: latest
@@ -109,14 +109,14 @@ jobs:
109109
${{ runner.os }}-nuget-
110110
111111
- name: Setup .NET Core
112-
uses: actions/setup-dotnet@v4
112+
uses: actions/setup-dotnet@v5
113113
with:
114114
dotnet-version: |
115-
9.x
115+
10.x
116116
117117
- name: Test
118118
run: dotnet test ClickHouse.Driver.Tests/ClickHouse.Driver.Tests.csproj
119-
--framework net9.0 --configuration Release --verbosity normal --logger GitHubActions
119+
--framework net10.0 --configuration Release --verbosity normal --logger GitHubActions
120120
/clp:ErrorsOnly /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:SkipAutoProps=true
121121
--filter "Category=Cloud"
122122
env:
@@ -148,9 +148,15 @@ jobs:
148148
restore-keys: |
149149
${{ runner.os }}-nuget-
150150
151+
- name: Setup .NET Core
152+
uses: actions/setup-dotnet@v5
153+
with:
154+
dotnet-version: |
155+
10.x
156+
151157
- name: Test
152158
run: dotnet test ClickHouse.Driver.Tests/ClickHouse.Driver.Tests.csproj
153-
--framework net9.0 --configuration Release --verbosity normal --logger GitHubActions
159+
--framework net10.0 --configuration Release --verbosity normal --logger GitHubActions
154160
/clp:ErrorsOnly /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:SkipAutoProps=true
155161
env:
156162
CLICKHOUSE_CONNECTION: Host=localhost;Port=8123;Username=default
@@ -180,9 +186,15 @@ jobs:
180186
restore-keys: |
181187
${{ runner.os }}-nuget-
182188
189+
- name: Setup .NET Core
190+
uses: actions/setup-dotnet@v5
191+
with:
192+
dotnet-version: |
193+
10.x
194+
183195
- name: Test
184196
run: dotnet test ClickHouse.Driver.Tests/ClickHouse.Driver.Tests.csproj
185-
--framework net9.0 --configuration Release --verbosity normal --logger GitHubActions
197+
--framework net10.0 --configuration Release --verbosity normal --logger GitHubActions
186198
/clp:ErrorsOnly /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:SkipAutoProps=true
187199
env:
188200
CLICKHOUSE_CONNECTION: Host=localhost;Port=8123;Username=default

ClickHouse.Driver.Benchmark/ClickHouse.Driver.Benchmark.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<PublishRepositoryUrl>true</PublishRepositoryUrl>
77
<IncludeSymbols>true</IncludeSymbols>
88
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

ClickHouse.Driver.IntegrationTests/ClickHouse.Driver.IntegrationTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>

ClickHouse.Driver.Tests/ClickHouse.Driver.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net462;net48;net6.0;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net48;net6.0;net8.0;net9.0;net10.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<LangVersion>latest</LangVersion>
77
<IsPackable>false</IsPackable>

ClickHouse.Driver/ClickHouse.Driver.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net462;net48;netstandard2.1;net6.0;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net48;netstandard2.1;net6.0;net8.0;net9.0;net10.0</TargetFrameworks>
55
<CheckEolTargetFramework>false</CheckEolTargetFramework>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
77
<PackageProjectUrl>https://github.com/ClickHouse/clickhouse-cs</PackageProjectUrl>

0 commit comments

Comments
 (0)