File tree Expand file tree Collapse file tree 3 files changed +22
-4
lines changed
test/WorkflowCore.Tests.MySQL Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 55
55
run : dotnet build --no-restore
56
56
- name : MongoDB Tests
57
57
run : dotnet test test/WorkflowCore.Tests.MongoDB --no-build --verbosity normal -p:ParallelizeTestCollections=false
58
+ MySQL-Tests :
59
+ runs-on : ubuntu-latest
60
+ steps :
61
+ - uses : actions/checkout@v2
62
+ - name : Setup .NET
63
+ uses : actions/setup-dotnet@v1
64
+ with :
65
+ dotnet-version : |
66
+ 3.1.x
67
+ 6.0.x
68
+ - name : Restore dependencies
69
+ run : dotnet restore
70
+ - name : Build
71
+ run : dotnet build --no-restore
72
+ - name : MySQL Tests
73
+ run : dotnet test test/WorkflowCore.Tests.MySQL --no-build --verbosity normal -p:ParallelizeTestCollections=false
58
74
PostgreSQL-Tests :
59
75
runs-on : ubuntu-latest
60
76
steps :
Original file line number Diff line number Diff line change @@ -19,16 +19,18 @@ public MysqlDockerSetup()
19
19
public async Task InitializeAsync ( )
20
20
{
21
21
await _mySqlResource . InitializeAsync ( ) ;
22
- ConnectionString = _mySqlResource . ConnectionString ;
23
- ScenarioConnectionString = _mySqlResource . ConnectionString ;
22
+ var workflowConnection = await _mySqlResource . CreateDatabaseAsync ( "workflow" ) ;
23
+ ConnectionString = workflowConnection . ConnectionString ;
24
+ var scenariosConnection = await _mySqlResource . CreateDatabaseAsync ( "scenarios" ) ;
25
+ ScenarioConnectionString = scenariosConnection . ConnectionString ;
24
26
}
25
27
26
28
public Task DisposeAsync ( )
27
29
{
28
30
return _mySqlResource . DisposeAsync ( ) ;
29
31
}
30
32
}
31
-
33
+
32
34
[ CollectionDefinition ( "Mysql collection" ) ]
33
35
public class MysqlCollection : ICollectionFixture < MysqlDockerSetup >
34
36
{
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<ItemGroup >
4
- <PackageReference Include =" Squadron.MySql" Version =" 0.17.0 " />
4
+ <PackageReference Include =" Squadron.MySql" Version =" 0.18.0-preview.7 " />
5
5
</ItemGroup >
6
6
7
7
<ItemGroup >
You can’t perform that action at this time.
0 commit comments