Skip to content

Commit c99713d

Browse files
LiamHamstersKirillKurdyukov
authored andcommitted
Add: functional test results summary (#491)
1 parent 0022c3c commit c99713d

File tree

3 files changed

+39
-20
lines changed

3 files changed

+39
-20
lines changed

.github/workflows/tests.yml

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,60 +19,68 @@ jobs:
1919
services:
2020
ydb:
2121
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
22-
ports:
23-
- 2135:2135
24-
- 2136:2136
25-
- 8765:8765
22+
ports: [ "2135:2135", "2136:2136", "8765:8765" ]
2623
env:
2724
YDB_LOCAL_SURVIVE_RESTART: true
2825
options: '--name ydb-local -h localhost'
26+
2927
steps:
3028
- name: Checkout code
3129
uses: actions/checkout@v4
30+
3231
- name: Install Dotnet
3332
uses: actions/setup-dotnet@v4
3433
with:
3534
dotnet-version: ${{ matrix.dotnet-version }}
35+
3636
- name: Run ADO.NET Tests
3737
working-directory: ./src/Ydb.Sdk/test/Ydb.Sdk.Ado.Tests
3838
run: |
3939
docker cp ydb-local:/ydb_certs/ca.pem ~/
40-
dotnet test
40+
dotnet test --logger "GitHubActions;report-warnings=false"
41+
4142
- name: Run ADO.NET Specification Tests
4243
working-directory: ./src/Ydb.Sdk/test/Ydb.Sdk.Ado.Specification.Tests
43-
run: dotnet test
44+
run: dotnet test --logger "GitHubActions;report-warnings=false"
45+
4446
- name: Run ADO.NET Dapper Tests
4547
working-directory: ./src/Ydb.Sdk/test/Ydb.Sdk.Ado.Dapper.Tests
46-
run: dotnet test
48+
run: dotnet test --logger "GitHubActions;report-warnings=false"
49+
4750
- name: Run Topic Tests
4851
working-directory: ./src/Ydb.Sdk/test/Ydb.Sdk.Topic.Tests
49-
run: dotnet test
52+
run: dotnet test --logger "GitHubActions;report-warnings=false"
53+
5054
efcore-tests:
5155
runs-on: ubuntu-22.04
5256
strategy:
5357
fail-fast: false
5458
matrix:
5559
ydb-version: [ 'latest', '25.1' ]
60+
dotnet-version: [ 8.0.x, 9.0.x ]
5661
services:
5762
ydb:
5863
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
59-
ports:
60-
- 2135:2135
61-
- 2136:2136
62-
- 8765:8765
64+
ports: [ "2135:2135", "2136:2136", "8765:8765" ]
6365
env:
6466
YDB_LOCAL_SURVIVE_RESTART: true
6567
options: '--name ydb-local -h localhost'
68+
6669
steps:
6770
- name: Checkout code
6871
uses: actions/checkout@v4
72+
6973
- name: Install Dotnet
7074
uses: actions/setup-dotnet@v4
7175
with:
72-
dotnet-version: 9.0.x
73-
- name: Run EFCore tests
74-
working-directory: ./src/EFCore.Ydb/test/EntityFrameworkCore.Ydb.FunctionalTests/
75-
run: dotnet test
76+
dotnet-version: ${{ matrix.dotnet-version }}
77+
78+
- name: Run EFCore.Ydb functional tests
79+
working-directory: ./src/EFCore.Ydb/test/EntityFrameworkCore.Ydb.FunctionalTests
80+
run: |
81+
docker cp ydb-local:/ydb_certs/ca.pem ~/
82+
dotnet test --logger "GitHubActions;report-warnings=false"
83+
7684
run-examples:
7785
runs-on: ubuntu-22.04
7886
strategy:
@@ -83,34 +91,36 @@ jobs:
8391
services:
8492
ydb:
8593
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
86-
ports:
87-
- 2135:2135
88-
- 2136:2136
89-
- 8765:8765
94+
ports: [ "2135:2135", "2136:2136", "8765:8765" ]
9095
env:
9196
YDB_LOCAL_SURVIVE_RESTART: true
9297
YDB_USE_IN_MEMORY_PDISKS: true
9398
options: '--name ydb-local -h localhost'
9499
steps:
95100
- name: Checkout code
96101
uses: actions/checkout@v4
102+
97103
- name: Install Dotnet
98104
uses: actions/setup-dotnet@v4
99105
with:
100106
dotnet-version: ${{ matrix.dotnet-version }}
107+
101108
- name: Run Ydb.Sdk.AdoNet.QuickStart
102109
run: |
103110
docker cp ydb-local:/ydb_certs/ca.pem ~/
104111
cd ./examples/Ydb.Sdk.AdoNet.QuickStart
105112
dotnet run
113+
106114
- name: Run Ydb.Sdk.AdoNet.Dapper.QuickStart
107115
run: |
108116
cd ./examples/Ydb.Sdk.AdoNet.Dapper.QuickStart
109117
dotnet run
118+
110119
- name: Run Ydb.Sdk.Topic.QuickStart
111120
run: |
112121
cd ./examples/Ydb.Sdk.Topic.QuickStart
113122
dotnet run
123+
114124
- name: Run EntityFrameworkCore.Ydb.QuickStart
115125
run: |
116126
cd ./examples/EntityFrameworkCore.Ydb.QuickStart
@@ -119,6 +129,7 @@ jobs:
119129
dotnet ef migrations add InitialCreate
120130
dotnet ef database update
121131
dotnet run
132+
122133
- name: Run EntityFrameworkCore.Ydb.Samples/Database.Operations.Tutorial
123134
run: |
124135
cd ./examples/EntityFrameworkCore.Ydb.Samples/Database.Operations.Tutorial

src/Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
<ItemGroup>
3+
<PackageReference Include="GitHubActionsTestLogger"
4+
Version="2.4.1"
5+
PrivateAssets="all" />
6+
</ItemGroup>
7+
</Project>

src/YdbSdk.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ EndProject
1717
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "EFCore.Ydb", "EFCore.Ydb", "{5E7B167B-5FC7-41BD-8819-16B02ED9B961}"
1818
ProjectSection(SolutionItems) = preProject
1919
EFCore.Ydb\CHANGELOG.md = EFCore.Ydb\CHANGELOG.md
20+
Directory.Build.props = Directory.Build.props
2021
EndProjectSection
2122
EndProject
2223
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{4A4EE5F3-CC9C-4166-A8F5-3ACFDD2A75F3}"

0 commit comments

Comments
 (0)