-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing up lint targets with a minor tweaks. (#1318)
- Loading branch information
1 parent
c3384cc
commit 1d493a6
Showing
15 changed files
with
86 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
using Rocket.Surgery.Nuke.GithubActions; | ||
using Serilog; | ||
|
||
namespace Rocket.Surgery.Nuke; | ||
|
||
/// <summary> | ||
/// Defines a build version target | ||
/// </summary> | ||
[PublicAPI] | ||
public interface IHaveBuildVersion : IHaveGitVersion, IHaveSolution, IHaveConfiguration | ||
{ | ||
/// <summary> | ||
/// prints the build information. | ||
/// </summary> | ||
[NonEntryTarget] | ||
public Target BuildVersion => d => d | ||
.Executes( | ||
() => | ||
{ | ||
Log.Information( | ||
"Building version {NuGetVersion} of {SolutionName} ({Configuration}) using version {NukeVersion} of Nuke", | ||
GitVersion.NuGetVersionV2 ?? GitVersion.NuGetVersion, | ||
Solution.Name, | ||
Configuration, | ||
typeof(NukeBuild).Assembly.GetVersionText() | ||
); | ||
} | ||
); | ||
} | ||
.Executes( | ||
() => | ||
{ | ||
Log.Information( | ||
"Building version {NuGetVersion} of {SolutionName} ({Configuration}) using version {NukeVersion} of Nuke", | ||
GitVersion.NuGetVersionV2 ?? GitVersion.NuGetVersion, | ||
Solution.Name, | ||
Configuration, | ||
typeof(NukeBuild).Assembly.GetVersionText() | ||
); | ||
} | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Rocket.Surgery.Nuke; | ||
|
||
/// <summary> | ||
/// Defines a clean target | ||
/// </summary> | ||
public interface IHaveLintTarget : IHave | ||
{ | ||
/// <summary> | ||
/// The Lint Target | ||
/// </summary> | ||
[NonEntryTarget] | ||
Target Lint { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters