Skip to content

Commit

Permalink
ci: Skip build on Test-target
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnatamo committed Jul 27, 2024
1 parent 12a9ea3 commit b11a160
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .build/Build.Compile.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using Nuke.Common;
using Nuke.Common.Tools.DotNet;

using static Nuke.Common.IO.PathConstruction;

partial class Build : NukeBuild
{
Target Restore => _ => _
Expand All @@ -14,6 +12,6 @@ partial class Build : NukeBuild
.Executes(() =>
DotNetTasks.DotNetBuild(c => c
.SetProjectFile(SolutionFilePath)
.SetNoRestore(InvokedTargets.Contains(Restore))
.SetNoRestore(true)
.SetConfiguration(Configuration)));
}
2 changes: 1 addition & 1 deletion .build/Build.Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ partial class Build : NukeBuild
.DependsOn(Compile)
.Executes(() =>
DotNetTasks.DotNetTest(c => c
.SetNoBuild(false)
.SetNoBuild(true)
.SetNoRestore(true)
.SetConfiguration(Configuration.Debug)
.CombineWith(TestProjects, (_, project) => _
Expand Down

0 comments on commit b11a160

Please sign in to comment.