@@ -15,27 +15,34 @@ jobs:
1515 fail-fast : false
1616 matrix :
1717 os : [ ubuntu-22.04, windows-2022, macos-15 ]
18+ dotnet-version : [ 6.0.x, 7.0.x ]
19+ include :
20+ - dotnet-version : 6.0.x
21+ dotnet-target-framework : net6.0
22+ - dotnet-version : 7.0.x
23+ dotnet-target-framework : net7.0
1824 runs-on : ${{ matrix.os }}
1925 steps :
2026 - name : Checkout
2127 uses : actions/checkout@v4
2228 - name : Setup dotnet
2329 uses : actions/setup-dotnet@v4
2430 with :
25- dotnet-version : |
26- 6.0.x
27- 7.0.x
28- 9.0.x
31+ dotnet-version : ${{ matrix.dotnet-version }}
2932 - name : Test
30- run : |
31- cd src
32- dotnet test --filter "Category=Unit"
33+ run : dotnet test src/Ydb.Sdk/tests/Tests.csproj --filter "Category=Unit" -f ${{ matrix.dotnet-target-framework }}
3334 ado-net-tests :
3435 runs-on : ubuntu-22.04
3536 strategy :
3637 fail-fast : false
3738 matrix :
3839 ydb-version : [ 'trunk', 'latest' ]
40+ dotnet-version : [ 6.0.x, 7.0.x ]
41+ include :
42+ - dotnet-version : 6.0.x
43+ dotnet-target-framework : net6.0
44+ - dotnet-version : 7.0.x
45+ dotnet-target-framework : net7.0
3946 services :
4047 ydb :
4148 image : ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -52,20 +59,23 @@ jobs:
5259 - name : Install Dotnet
5360 uses : actions/setup-dotnet@v4
5461 with :
55- dotnet-version : |
56- 7.0.x
57- 9.0.x
62+ dotnet-version : ${{ matrix.dotnet-version }}
5863 - name : Run ADO.NET tests
5964 run : |
6065 docker cp ydb-local:/ydb_certs/ca.pem ~/
61- cd src
62- dotnet test --filter "(FullyQualifiedName~Ado) | (FullyQualifiedName~Dapper)"
66+ dotnet test src/Ydb.Sdk/tests/Tests.csproj --filter "(FullyQualifiedName~Ado) | (FullyQualifiedName~Dapper)" -f ${{ matrix.dotnet-target-framework }} -l "console;verbosity=normal"
6367 topic-tests :
6468 runs-on : ubuntu-22.04
6569 strategy :
6670 fail-fast : false
6771 matrix :
68- ydb-version : [ 'trunk', 'latest' ]
72+ ydb-version : [ 'trunk' ]
73+ dotnet-version : [ 6.0.x, 7.0.x ]
74+ include :
75+ - dotnet-version : 6.0.x
76+ dotnet-target-framework : net6.0
77+ - dotnet-version : 7.0.x
78+ dotnet-target-framework : net7.0
6979 services :
7080 ydb :
7181 image : ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -82,19 +92,21 @@ jobs:
8292 - name : Install Dotnet
8393 uses : actions/setup-dotnet@v4
8494 with :
85- dotnet-version : |
86- 7.0.x
87- 9.0.x
95+ dotnet-version : ${{ matrix.dotnet-version }}
8896 - name : Run Topic tests
89- run : |
90- cd src
91- dotnet test --filter "FullyQualifiedName~Topic"
97+ run : dotnet test src/Ydb.Sdk/tests/Tests.csproj --filter "FullyQualifiedName~Topic" -f ${{ matrix.dotnet-target-framework }} -l "console;verbosity=detailed"
9298 integration-tests :
9399 runs-on : ubuntu-22.04
94100 strategy :
95101 fail-fast : false
96102 matrix :
97103 ydb-version : [ 'trunk' ]
104+ dotnet-version : [ 6.0.x, 7.0.x ]
105+ include :
106+ - dotnet-version : 6.0.x
107+ dotnet-target-framework : net6.0
108+ - dotnet-version : 7.0.x
109+ dotnet-target-framework : net7.0
98110 services :
99111 ydb :
100112 image : ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -111,21 +123,22 @@ jobs:
111123 - name : Install Dotnet
112124 uses : actions/setup-dotnet@v4
113125 with :
114- dotnet-version : |
115- 7.0.x
116- 9.0.x
126+ dotnet-version : ${{ matrix.dotnet-version }}
117127 - name : Integration test
118- run : |
119- docker cp ydb-local:/ydb_certs/ca.pem ~/
120- cd src
121- dotnet test --filter "Category=Integration"
128+ run : dotnet test src/Ydb.Sdk/tests/Tests.csproj --filter "Category=Integration" -f ${{ matrix.dotnet-target-framework }} -l "console;verbosity=normal"
122129
123130 run-examples :
124131 runs-on : ubuntu-22.04
125132 strategy :
126133 fail-fast : false
127134 matrix :
128135 ydb-version : [ 'latest', 'trunk' ]
136+ dotnet-version : [ 6.0.x, 7.0.x ]
137+ include :
138+ - dotnet-version : 6.0.x
139+ dotnet-target-framework : net6.0
140+ - dotnet-version : 7.0.x
141+ dotnet-target-framework : net7.0
129142 services :
130143 ydb :
131144 image : ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -143,7 +156,7 @@ jobs:
143156 - name : Install Dotnet
144157 uses : actions/setup-dotnet@v4
145158 with :
146- dotnet-version : 9.0.x
159+ dotnet-version : ${{ matrix.dotnet-version }}
147160 - name : Run ADO.NET example
148161 run : |
149162 docker cp ydb-local:/ydb_certs/ca.pem ~/
0 commit comments