diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c27bd931..58920dd4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,34 +53,9 @@ jobs: - name: Build run: dotnet build src --configuration Release ${{ env.VERSION_ARGUMENT }} - # One project at a time, deleting the LocalDB instances in between, as each project - # creates its own and they collide when left behind. + # The whole solution in one run, with the test projects in parallel, as a developer runs it. - name: Test - shell: pwsh - run: | - $projects = @( - 'LocalDb.Tests' - 'EfClassicLocalDb.Tests' - 'EfLocalDb.Tests' - 'EfLocalDb.NUnit.Tests' - 'EfLocalDb.MSTest.Tests' - 'EfLocalDb.Xunit.V3.Tests' - 'EfLocalDb.TUnit.Tests' - ) - $failed = @() - foreach ($project in $projects) - { - dotnet test --project "src/$project" --configuration Release --no-build --no-restore - if ($LASTEXITCODE -ne 0) - { - $failed += $project - } - sqllocaldb info | ForEach-Object { sqllocaldb stop $_ ; sqllocaldb delete $_ } - } - if ($failed.Count -gt 0) - { - throw "Failed test projects: $($failed -join ', ')" - } + run: dotnet test --solution src/LocalDb.slnx --configuration Release --no-build --no-restore - name: Upload received on failure if: failure() diff --git a/src/EfLocalDb.ReportTrxHelper/Directory.Build.targets b/src/EfLocalDb.ReportTrxHelper/Directory.Build.targets new file mode 100644 index 00000000..b5a2cc26 --- /dev/null +++ b/src/EfLocalDb.ReportTrxHelper/Directory.Build.targets @@ -0,0 +1,18 @@ + + + + false + + diff --git a/src/EfLocalDb.ReportTrxHelper/EfLocalDb.ReportTrxHelper.csproj b/src/EfLocalDb.ReportTrxHelper/EfLocalDb.ReportTrxHelper.csproj index f857af6e..b6a007d3 100644 --- a/src/EfLocalDb.ReportTrxHelper/EfLocalDb.ReportTrxHelper.csproj +++ b/src/EfLocalDb.ReportTrxHelper/EfLocalDb.ReportTrxHelper.csproj @@ -5,6 +5,14 @@ true false false + + true + true