Skip to content

Commit 5c7143f

Browse files
authored
CI: serialize DB-dependent tests (#2163)
* CI: serialize DB-dependent tests * github workflows test
1 parent 5e6a6eb commit 5c7143f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: .NET Build
4848
run: dotnet build Build.csproj -c Release /p:CI=true
4949
- name: Dapper Tests
50-
run: dotnet test tests/Dapper.Tests/Dapper.Tests.csproj -c Release --logger GitHubActions /p:CI=true
50+
run: dotnet test tests/Dapper.Tests/Dapper.Tests.csproj -c Release --logger GitHubActions -p:CI=true -p:TestTfmsInParallel=false
5151
env:
5252
MySqlConnectionString: Server=localhost;Port=${{ job.services.mysql.ports[3306] }};Uid=root;Pwd=root;Database=test;Allow User Variables=true
5353
OLEDBConnectionString: Provider=SQLOLEDB;Server=tcp:localhost,${{ job.services.sqlserver.ports[1433] }};Database=tempdb;User Id=sa;Password=Password.;

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ dotnet build ".\Build.csproj" -c Release /p:CI=true
2222
Write-Host "Done building." -ForegroundColor "Green"
2323

2424
if ($RunTests) {
25-
Write-Host "Running tests: Build.csproj traversal (all frameworks)" -ForegroundColor "Magenta"
26-
dotnet test ".\Build.csproj" -c Release --no-build
25+
Write-Host "Running tests: Build.csproj" -ForegroundColor "Magenta"
26+
dotnet test ".\Build.csproj" -c Release --no-build -p:TestTfmsInParallel=false
2727
if ($LastExitCode -ne 0) {
2828
Write-Host "Error with tests, aborting build." -Foreground "Red"
2929
Exit 1

0 commit comments

Comments
 (0)