Skip to content

Commit 1f6e397

Browse files
committed
add: EFCore functional test results summary
1 parent 98ca7a8 commit 1f6e397

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,40 @@ jobs:
7070
--results-directory "$PWD"
7171
continue-on-error: true
7272

73+
efcore-tests:
74+
runs-on: ubuntu-22.04
75+
strategy:
76+
fail-fast: false
77+
matrix:
78+
ydb-version: [ 'latest', '25.1' ]
79+
dotnet-version: [ 8.0.x, 9.0.x ]
80+
services:
81+
ydb:
82+
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
83+
ports: [ "2135:2135", "2136:2136", "8765:8765" ]
84+
env:
85+
YDB_LOCAL_SURVIVE_RESTART: true
86+
options: '--name ydb-local -h localhost'
87+
88+
steps:
89+
- name: Checkout code
90+
uses: actions/checkout@v4
91+
92+
- name: Install Dotnet
93+
uses: actions/setup-dotnet@v4
94+
with:
95+
dotnet-version: ${{ matrix.dotnet-version }}
96+
97+
- name: Run EFCore.Ydb functional tests
98+
working-directory: ./src/EFCore.Ydb/test/EntityFrameworkCore.Ydb.FunctionalTests
99+
run: |
100+
docker cp ydb-local:/ydb_certs/ca.pem ~/
101+
dotnet test \
102+
--logger "GitHubActions;report-warnings=false" \
103+
--logger "trx;LogFileName=efcore.trx" \
104+
--results-directory "$PWD"
105+
continue-on-error: true
106+
73107
run-examples:
74108
runs-on: ubuntu-22.04
75109
strategy:

src/YdbSdk.sln

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ EndProject
1111
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E21B559D-5E8D-47AE-950E-03435F3066DF}"
1212
EndProject
1313
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{316B82EF-019D-4267-95A9-5E243086B240}"
14-
ProjectSection(SolutionItems) = preProject
15-
Directory.Build.props = Directory.Build.props
16-
EndProjectSection
1714
EndProject
1815
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ydb.Sdk", "Ydb.Sdk\src\Ydb.Sdk.csproj", "{C91FA8B1-713B-40F4-B07A-EB6CD4106392}"
1916
EndProject
2017
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "EFCore.Ydb", "EFCore.Ydb", "{5E7B167B-5FC7-41BD-8819-16B02ED9B961}"
2118
ProjectSection(SolutionItems) = preProject
2219
EFCore.Ydb\CHANGELOG.md = EFCore.Ydb\CHANGELOG.md
20+
Directory.Build.props = Directory.Build.props
2321
EndProjectSection
2422
EndProject
2523
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{4A4EE5F3-CC9C-4166-A8F5-3ACFDD2A75F3}"

0 commit comments

Comments
 (0)