diff --git a/.github/workflows/_unit_tests.yml b/.github/workflows/_unit_tests.yml index cbb1777275..7007660ca8 100644 --- a/.github/workflows/_unit_tests.yml +++ b/.github/workflows/_unit_tests.yml @@ -30,6 +30,6 @@ jobs: - name: Test Summary uses: test-summary/action@v2 + if: matrix.targetFramework == 'net7.0' with: paths: artifacts/test-results/*.results.xml - if: always() diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 412dbdd01b..a1702539c7 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -9,7 +9,7 @@ - + @@ -22,7 +22,7 @@ - + @@ -37,4 +37,4 @@ - \ No newline at end of file + diff --git a/src/GitVersion.Testing/Internal/PathHelper.cs b/src/GitVersion.Testing/Internal/PathHelper.cs index bbaee8edf8..e2ea87564c 100644 --- a/src/GitVersion.Testing/Internal/PathHelper.cs +++ b/src/GitVersion.Testing/Internal/PathHelper.cs @@ -2,5 +2,6 @@ namespace GitVersion.Testing.Internal; internal static class PathHelper { - public static string GetTempPath() => Path.Combine(Path.GetTempPath(), "TestRepositories", Guid.NewGuid().ToString()); + public static string GetCurrentDirectory() => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? throw new InvalidOperationException(); + public static string GetTempPath() => Path.Combine(GetCurrentDirectory(), "TestRepositories", Guid.NewGuid().ToString()); }