diff --git a/.github/workflows/new-cli.yml b/.github/workflows/new-cli.yml index 5fd7034189..ae9ec5d10d 100644 --- a/.github/workflows/new-cli.yml +++ b/.github/workflows/new-cli.yml @@ -53,4 +53,4 @@ jobs: run: dotnet format ./new-cli --exclude ~/.nuget/packages --verify-no-changes - name: Test 'new-cli' solution - run: dotnet test ./new-cli --no-build --verbosity normal + run: dotnet test --solution ./new-cli/GitVersion.slnx --no-build --verbosity normal diff --git a/global.json b/global.json index 87935393fc..e6a9b38454 100644 --- a/global.json +++ b/global.json @@ -1,10 +1,13 @@ { - "projects": [ - "build", - "new-cli", - "src" - ], - "sdk": { - "version": "10.0.101" - } + "projects": [ + "build", + "new-cli", + "src" + ], + "sdk": { + "version": "10.0.101" + }, + "test": { + "runner": "Microsoft.Testing.Platform" + } } diff --git a/new-cli/Directory.Packages.props b/new-cli/Directory.Packages.props index c2bf08a18f..63ab2c9f2f 100644 --- a/new-cli/Directory.Packages.props +++ b/new-cli/Directory.Packages.props @@ -20,7 +20,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/new-cli/GitVersion.Cli.Generator.Tests/GitVersion.Cli.Generator.Tests.csproj b/new-cli/GitVersion.Cli.Generator.Tests/GitVersion.Cli.Generator.Tests.csproj index 9478d94c71..7c28fa017a 100644 --- a/new-cli/GitVersion.Cli.Generator.Tests/GitVersion.Cli.Generator.Tests.csproj +++ b/new-cli/GitVersion.Cli.Generator.Tests/GitVersion.Cli.Generator.Tests.csproj @@ -1,19 +1,11 @@  - - true - true - - - true - Exe GitVersion.Cli.Generator.Tests false + + true diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 504f1ea51b..19fdad8232 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -34,13 +34,18 @@ false false - true + true true + + Exe + true + + all @@ -51,7 +56,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -64,7 +69,7 @@ - + @@ -77,13 +82,13 @@ - + - + diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index d51be906a4..c3ca348ea7 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -6,7 +6,7 @@ - + @@ -20,11 +20,11 @@ - + - - + + @@ -36,14 +36,14 @@ - + - - + + - + diff --git a/src/GitVersion.Core.Tests/Core/DynamicRepositoryTests.cs b/src/GitVersion.Core.Tests/Core/DynamicRepositoryTests.cs index 03eb85b522..4a14693413 100644 --- a/src/GitVersion.Core.Tests/Core/DynamicRepositoryTests.cs +++ b/src/GitVersion.Core.Tests/Core/DynamicRepositoryTests.cs @@ -21,6 +21,7 @@ public void TearDown() // Note: use same name twice to see if changing commits works on same (cached) repository [NonParallelizable] + [Explicit] [TestCase("GV_main", "https://github.com/GitTools/GitVersion", MainBranch, "2dc142a4a4df77db61a00d9fb7510b18b3c2c85a", "5.8.2-47")] [TestCase("GV_main", "https://github.com/GitTools/GitVersion", MainBranch, "efddf2f92c539a9c27f1904d952dcab8fb955f0e", "5.8.2-56")] public void FindsVersionInDynamicRepo(string name, string url, string targetBranch, string commitId, string expectedFullSemVer) diff --git a/src/GitVersion.Testing/GitVersion.Testing.csproj b/src/GitVersion.Testing/GitVersion.Testing.csproj index 08c0eba912..4a461294b8 100644 --- a/src/GitVersion.Testing/GitVersion.Testing.csproj +++ b/src/GitVersion.Testing/GitVersion.Testing.csproj @@ -1,10 +1,12 @@ + Library false true +