mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-16 21:03:18 +08:00
CI: serialize DB-dependent tests (#2163)
* CI: serialize DB-dependent tests * github workflows test
This commit is contained in:
@@ -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.;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user