Skip to content

Commit 40d13c3

Browse files
Update tests.yml
1 parent 1a581e9 commit 40d13c3

File tree

1 file changed

+36
-11
lines changed

1 file changed

+36
-11
lines changed

.github/workflows/tests.yml

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,36 @@ 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: 9.0.x
31+
dotnet-version: ${{ matrix.dotnet-version }}
2632
- name: Test
2733
run: |
28-
cd src
29-
dotnet test --filter "Category=Unit"
34+
cd src/Ydb.Sdk/src
35+
dotnet test --filter "Category=Unit" -f ${{ matrix.dotnet-target-framework }}
3036
ado-net-tests:
3137
runs-on: ubuntu-22.04
3238
strategy:
3339
fail-fast: false
3440
matrix:
3541
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
3648
services:
3749
ydb:
3850
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -53,14 +65,20 @@ jobs:
5365
- name: Run ADO.NET tests
5466
run: |
5567
docker cp ydb-local:/ydb_certs/ca.pem ~/
56-
cd src
68+
cd src/Ydb.Sdk/src
5769
dotnet test --filter "(FullyQualifiedName~Ado) | (FullyQualifiedName~Dapper)"
5870
topic-tests:
5971
runs-on: ubuntu-22.04
6072
strategy:
6173
fail-fast: false
6274
matrix:
63-
ydb-version: [ 'trunk', 'latest' ]
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
6482
services:
6583
ydb:
6684
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -77,11 +95,12 @@ jobs:
7795
- name: Install Dotnet
7896
uses: actions/setup-dotnet@v4
7997
with:
80-
dotnet-version: 9.0.x
98+
dotnet-version: ${{ matrix.dotnet-version }}
8199
- name: Run Topic tests
82100
run: |
83-
cd src
84-
dotnet test --filter "FullyQualifiedName~Topic"
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 }} -l
85104
integration-tests:
86105
runs-on: ubuntu-22.04
87106
strategy:
@@ -114,15 +133,21 @@ jobs:
114133
- name: Integration test
115134
run: |
116135
docker cp ydb-local:/ydb_certs/ca.pem ~/
117-
cd src
118-
dotnet test --filter "Category=Integration"
136+
cd src/Ydb.Sdk/src
137+
dotnet test --filter "Category=Integration" -f ${{ matrix.dotnet-target-framework }}
119138
120139
run-examples:
121140
runs-on: ubuntu-22.04
122141
strategy:
123142
fail-fast: false
124143
matrix:
125144
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
126151
services:
127152
ydb:
128153
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
@@ -140,7 +165,7 @@ jobs:
140165
- name: Install Dotnet
141166
uses: actions/setup-dotnet@v4
142167
with:
143-
dotnet-version: 9.0.x
168+
dotnet-version: ${{ matrix.dotnet-version }}
144169
- name: Run ADO.NET example
145170
run: |
146171
docker cp ydb-local:/ydb_certs/ca.pem ~/

0 commit comments

Comments
 (0)