Fixed test build

Include both .NET 6 and .NET 7 versions of the tests
This commit is contained in:
Mark van Renswoude 2022-11-23 09:28:40 +01:00
parent 840654524e
commit 7f6ab8e411
2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,4 @@
// Do not include in the Release build for AppVeyor due to the Docker requirement using System;
#if DEBUG
using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Docker.DotNet; using Docker.DotNet;
using Docker.DotNet.Models; using Docker.DotNet.Models;
@ -78,5 +76,4 @@ namespace Tapeti.Tests.Client
await testcontainers.DisposeAsync(); await testcontainers.DisposeAsync();
} }
} }
} }
#endif

View File

@ -36,6 +36,7 @@ test:
assemblies: assemblies:
only: only:
- Tapeti.Tests\bin\Release\net6.0\Tapeti.Tests.dll - Tapeti.Tests\bin\Release\net6.0\Tapeti.Tests.dll
- Tapeti.Tests\bin\Release\net7.0\Tapeti.Tests.dll
categories: categories:
except: except:
- Requires Docker - Requires Docker