From 963bbc8db8be14f1266ba2410a93bb1bb020a110 Mon Sep 17 00:00:00 2001 From: Adam Ralph Date: Mon, 25 Dec 2023 10:33:06 +0000 Subject: [PATCH] add format build step --- targets/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/targets/Program.cs b/targets/Program.cs index 7d5186d3..2827133c 100644 --- a/targets/Program.cs +++ b/targets/Program.cs @@ -12,6 +12,8 @@ testLoggerArgs.AddRange(["--logger", "GitHubActions",]); } +Target("format", () => RunAsync("dotnet", "format --verify-no-changes")); + Target("build", () => RunAsync("dotnet", "build --configuration Release --nologo")); Target( @@ -88,6 +90,6 @@ await RunAsync( Target("eyeball-logs", DependsOn("eyeball-minver-logs", "eyeball-minver-cli-logs")); -Target("default", DependsOn("test-lib", "test-packages", "eyeball-logs")); +Target("default", DependsOn("format", "test-lib", "test-packages", "eyeball-logs")); await RunTargetsAndExitAsync(args, ex => ex is SimpleExec.ExitCodeException);