Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 47 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-2022, macos-12]
dotnet-version: [6.0.x, 7.0.x]
os: [ ubuntu-22.04, windows-2022, macos-12 ]
dotnet-version: [ 6.0.x, 7.0.x ]
include:
- dotnet-version: 6.0.x
dotnet-target-framework: net6.0
Expand All @@ -30,17 +30,58 @@ jobs:
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Test
run: |
run: |
cd src
dotnet test --filter "Category=Unit" -f ${{ matrix.dotnet-target-framework }}
integration-tests:

ado-net-tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
ydb-version: [ 'trunk' ]
dotnet-version: [6.0.x, 7.0.x]
dotnet-version: [ 6.0.x, 7.0.x ]
include:
- dotnet-version: 6.0.x
dotnet-target-framework: net6.0
- dotnet-version: 7.0.x
dotnet-target-framework: net7.0
services:
ydb:
image: cr.yandex/yc/yandex-docker-local-ydb:${{ matrix.ydb-version }}
ports:
- 2135:2135
- 2136:2136
- 8765:8765
env:
YDB_LOCAL_SURVIVE_RESTART: true
YDB_USE_IN_MEMORY_PDISKS: true
options: '--name ydb-local -h localhost'
env:
OS: ubuntu-22.04
YDB_VERSION: ${{ matrix.ydb-version }}
YDB_CONNECTION_STRING: grpc://localhost:2136/local
YDB_CONNECTION_STRING_SECURE: grpcs://localhost:2135/local
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Run ADO.NET tests
run: |
docker cp ydb-local:/ydb_certs/ca.pem ~/
cd src
dotnet test --filter "(FullyQualifiedName~Ado) | (FullyQualifiedName~Dapper)" -l "console;verbosity=normal"

core-integration-tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
ydb-version: [ 'trunk' ]
dotnet-version: [ 6.0.x, 7.0.x ]
include:
- dotnet-version: 6.0.x
dotnet-target-framework: net6.0
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/Internal/SqlParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

namespace Ydb.Sdk.Tests.Ado.Internal;

[Trait("Category", "Unit")]
public class SqlParserTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/YdbAdoUserPasswordTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

namespace Ydb.Sdk.Tests.Ado;

[Trait("Category", "Integration")]
public class YdbAdoUserPasswordTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/YdbCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

namespace Ydb.Sdk.Tests.Ado;

[Trait("Category", "Integration")]
public class YdbCommandTests
{
[Theory]
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/YdbConnectionStringBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

namespace Ydb.Sdk.Tests.Ado;

[Trait("Category", "Unit")]
public class YdbConnectionStringBuilderTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/YdbConnectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

namespace Ydb.Sdk.Tests.Ado;

[Trait("Category", "Integration")]
[Collection("YdbConnectionTests")]
public class YdbConnectionTests
{
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/YdbDataReaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

namespace Ydb.Sdk.Tests.Ado;

[Trait("Category", "Unit")]
public class YdbDataReaderTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/YdbDataSourceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Ydb.Sdk.Tests.Ado;

[Trait("Category", "Integration")]
public class YdbDataSourceTests
{
private const int SelectedCount = 100;
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/YdbExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Ydb.Sdk.Tests.Ado;

[Trait("Category", "Integration")]
public class YdbExceptionTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/YdbParameterCollectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Ydb.Sdk.Tests.Ado;

[Trait("Category", "Unit")]
public class YdbParameterCollectionTests
{
private readonly YdbParameterCollection _ydbParameterCollection;
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/YdbParameterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

namespace Ydb.Sdk.Tests.Ado;

[Trait("Category", "Unit")]
public class YdbParameterTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion src/Ydb.Sdk/tests/Ado/YdbTransactionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

namespace Ydb.Sdk.Tests.Ado;

[Trait("Category", "Integration")]
public class YdbTransactionTests : IAsyncLifetime
{
private static readonly TemporaryTables<YdbTransactionTests> Tables = new();
Expand Down
Loading