Skip to content

Commit

Permalink
Added target to regenerate all configured build configurations for us…
Browse files Browse the repository at this point in the history
…e in the pre-commit task
  • Loading branch information
david-driscoll committed Nov 20, 2023
1 parent 85ff547 commit 58f32ba
Show file tree
Hide file tree
Showing 15 changed files with 1,361 additions and 76 deletions.
6 changes: 1 addition & 5 deletions .build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public partial class Pipeline : NukeBuild,
IGenerateCodeCoverageReport,
IGenerateCodeCoverageSummary,
IGenerateCodeCoverageBadges,
ICanRegenerateBuildConfiguration,
IHaveConfiguration<Configuration>
{
/// <summary>
Expand All @@ -52,7 +53,6 @@ public static int Main()
.DependsOn(Restore)
.DependsOn(Build)
.DependsOn(Test)
.DependsOn(Lint)
.DependsOn(Pack);

public Target Build => _ => _.Inherit<ICanBuildWithDotNetCore>(x => x.CoreBuild);
Expand All @@ -66,10 +66,6 @@ public static int Main()
public Target Restore => _ => _.Inherit<ICanRestoreWithDotNetCore>(x => x.CoreRestore);
public Target Test => _ => _.Inherit<ICanTestWithDotNetCore>(x => x.CoreTest);

public Target BuildVersion => _ => _.Inherit<IHaveBuildVersion>(x => x.BuildVersion)
.Before(Default)
.Before(Clean);

[Solution(GenerateProjects = true)] private Solution Solution { get; } = null!;
Nuke.Common.ProjectModel.Solution IHaveSolution.Solution => Solution;

Check warning on line 70 in .build/Build.cs

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Make 'Pipeline' sealed (a breaking change if this class has previously shipped), implement the method non-explicitly, or implement a new method that exposes the functionality of 'Rocket.Surgery.Nuke.IHaveSolution.get_Solution' and is visible to derived classes (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1033)

Check warning on line 70 in .build/Build.cs

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Make 'Pipeline' sealed (a breaking change if this class has previously shipped), implement the method non-explicitly, or implement a new method that exposes the functionality of 'Rocket.Surgery.Nuke.IHaveSolution.get_Solution' and is visible to derived classes (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1033)

Check warning on line 70 in .build/Build.cs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Make 'Pipeline' sealed (a breaking change if this class has previously shipped), implement the method non-explicitly, or implement a new method that exposes the functionality of 'Rocket.Surgery.Nuke.IHaveSolution.get_Solution' and is visible to derived classes (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1033)

Check warning on line 70 in .build/Build.cs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Make 'Pipeline' sealed (a breaking change if this class has previously shipped), implement the method non-explicitly, or implement a new method that exposes the functionality of 'Rocket.Surgery.Nuke.IHaveSolution.get_Solution' and is visible to derived classes (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1033)

Check warning on line 70 in .build/Build.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Make 'Pipeline' sealed (a breaking change if this class has previously shipped), implement the method non-explicitly, or implement a new method that exposes the functionality of 'Rocket.Surgery.Nuke.IHaveSolution.get_Solution' and is visible to derived classes (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1033)

Check warning on line 70 in .build/Build.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Make 'Pipeline' sealed (a breaking change if this class has previously shipped), implement the method non-explicitly, or implement a new method that exposes the functionality of 'Rocket.Surgery.Nuke.IHaveSolution.get_Solution' and is visible to derived classes (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1033)
[ComputedGitVersion] public GitVersion GitVersion { get; } = null!;
Expand Down
Loading

0 comments on commit 58f32ba

Please sign in to comment.