CI: serialize DB-dependent tests (#2163)

* CI: serialize DB-dependent tests

* github workflows test
This commit is contained in:
kabaome
2025-05-01 04:31:40 +09:00
committed by GitHub
parent 5e6a6eb82f
commit 5c7143f2e3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ jobs:
- name: .NET Build
run: dotnet build Build.csproj -c Release /p:CI=true
- name: Dapper Tests
run: dotnet test tests/Dapper.Tests/Dapper.Tests.csproj -c Release --logger GitHubActions /p:CI=true
run: dotnet test tests/Dapper.Tests/Dapper.Tests.csproj -c Release --logger GitHubActions -p:CI=true -p:TestTfmsInParallel=false
env:
MySqlConnectionString: Server=localhost;Port=${{ job.services.mysql.ports[3306] }};Uid=root;Pwd=root;Database=test;Allow User Variables=true
OLEDBConnectionString: Provider=SQLOLEDB;Server=tcp:localhost,${{ job.services.sqlserver.ports[1433] }};Database=tempdb;User Id=sa;Password=Password.;
+2 -2
View File
@@ -22,8 +22,8 @@ dotnet build ".\Build.csproj" -c Release /p:CI=true
Write-Host "Done building." -ForegroundColor "Green"
if ($RunTests) {
Write-Host "Running tests: Build.csproj traversal (all frameworks)" -ForegroundColor "Magenta"
dotnet test ".\Build.csproj" -c Release --no-build
Write-Host "Running tests: Build.csproj" -ForegroundColor "Magenta"
dotnet test ".\Build.csproj" -c Release --no-build -p:TestTfmsInParallel=false
if ($LastExitCode -ne 0) {
Write-Host "Error with tests, aborting build." -Foreground "Red"
Exit 1