Skip to content

Commit 8da448d

Browse files
Update tests.yml
1 parent 01b3936 commit 8da448d

File tree

1 file changed

+23
-46
lines changed

1 file changed

+23
-46
lines changed

.github/workflows/tests.yml

Lines changed: 23 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,26 @@ 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
2418
runs-on: ${{ matrix.os }}
2519
steps:
2620
- name: Checkout
2721
uses: actions/checkout@v4
2822
- name: Setup dotnet
2923
uses: actions/setup-dotnet@v4
3024
with:
31-
dotnet-version: ${{ matrix.dotnet-version }}
25+
dotnet-version: |
26+
7.0.x
27+
9.0.x
3228
- name: Test
3329
run: |
34-
cd src/Ydb.Sdk/src
35-
dotnet test --filter "Category=Unit" -f ${{ matrix.dotnet-target-framework }}
30+
cd src
31+
dotnet test --filter "Category=Unit"
3632
ado-net-tests:
3733
runs-on: ubuntu-22.04
3834
strategy:
3935
fail-fast: false
4036
matrix:
4137
ydb-version: [ 'trunk', 'latest' ]
42-
dotnet-version: [ 6.0.x, 7.0.x ]
43-
include:
44-
- dotnet-version: 6.0.x
45-
dotnet-target-framework: net6.0
46-
- dotnet-version: 7.0.x
47-
dotnet-target-framework: net7.0
4838
services:
4939
ydb:
5040
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -61,24 +51,20 @@ jobs:
6151
- name: Install Dotnet
6252
uses: actions/setup-dotnet@v4
6353
with:
64-
dotnet-version: ${{ matrix.dotnet-version }}
54+
dotnet-version: |
55+
7.0.x
56+
9.0.x
6557
- name: Run ADO.NET tests
6658
run: |
6759
docker cp ydb-local:/ydb_certs/ca.pem ~/
68-
cd src/Ydb.Sdk/src
69-
dotnet test --filter "(FullyQualifiedName~Ado) | (FullyQualifiedName~Dapper)" -f ${{ matrix.dotnet-target-framework }}
60+
cd src
61+
dotnet test --filter "(FullyQualifiedName~Ado) | (FullyQualifiedName~Dapper)"
7062
topic-tests:
7163
runs-on: ubuntu-22.04
7264
strategy:
7365
fail-fast: false
7466
matrix:
75-
ydb-version: [ 'trunk' ]
76-
dotnet-version: [ 6.0.x, 7.0.x ]
77-
include:
78-
- dotnet-version: 6.0.x
79-
dotnet-target-framework: net6.0
80-
- dotnet-version: 7.0.x
81-
dotnet-target-framework: net7.0
67+
ydb-version: [ 'trunk', 'latest' ]
8268
services:
8369
ydb:
8470
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -95,24 +81,19 @@ jobs:
9581
- name: Install Dotnet
9682
uses: actions/setup-dotnet@v4
9783
with:
98-
dotnet-version: ${{ matrix.dotnet-version }}
84+
dotnet-version: |
85+
7.0.x
86+
9.0.x
9987
- name: Run Topic tests
10088
run: |
101-
docker cp ydb-local:/ydb_certs/ca.pem ~/
102-
cd src/Ydb.Sdk/src
103-
dotnet test --filter "FullyQualifiedName~Topic" -f ${{ matrix.dotnet-target-framework }}
89+
cd src
90+
dotnet test --filter "FullyQualifiedName~Topic"
10491
integration-tests:
10592
runs-on: ubuntu-22.04
10693
strategy:
10794
fail-fast: false
10895
matrix:
109-
ydb-version: [ 'trunk' ]
110-
dotnet-version: [ 6.0.x, 7.0.x ]
111-
include:
112-
- dotnet-version: 6.0.x
113-
dotnet-target-framework: net6.0
114-
- dotnet-version: 7.0.x
115-
dotnet-target-framework: net7.0
96+
ydb-version: [ 'trunk', 'latest' ]
11697
services:
11798
ydb:
11899
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -129,25 +110,21 @@ jobs:
129110
- name: Install Dotnet
130111
uses: actions/setup-dotnet@v4
131112
with:
132-
dotnet-version: ${{ matrix.dotnet-version }}
113+
dotnet-version: |
114+
7.0.x
115+
9.0.x
133116
- name: Integration test
134117
run: |
135118
docker cp ydb-local:/ydb_certs/ca.pem ~/
136-
cd src/Ydb.Sdk/src
137-
dotnet test --filter "Category=Integration" -f ${{ matrix.dotnet-target-framework }}
119+
cd src
120+
dotnet test --filter "Category=Integration"
138121
139122
run-examples:
140123
runs-on: ubuntu-22.04
141124
strategy:
142125
fail-fast: false
143126
matrix:
144127
ydb-version: [ 'latest', 'trunk' ]
145-
dotnet-version: [ 6.0.x, 7.0.x ]
146-
include:
147-
- dotnet-version: 6.0.x
148-
dotnet-target-framework: net6.0
149-
- dotnet-version: 7.0.x
150-
dotnet-target-framework: net7.0
151128
services:
152129
ydb:
153130
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -165,7 +142,7 @@ jobs:
165142
- name: Install Dotnet
166143
uses: actions/setup-dotnet@v4
167144
with:
168-
dotnet-version: ${{ matrix.dotnet-version }}
145+
dotnet-version: 9.0.x
169146
- name: Run ADO.NET example
170147
run: |
171148
docker cp ydb-local:/ydb_certs/ca.pem ~/

0 commit comments

Comments
 (0)