mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-23 15:45:28 +00:00
(build) Update to Cake 0.35.0, update dependencies and improve dotnet-format execution. (#2039)
* (build) Update to Cake 0.35.0 * Cake.Frosting 0.35.0 * Cake.Coverlet 2.3.4 * Cake.Codecov 0.7.0 * Codecov 1.7.2 * Make dotnet-format execution more robust (fails if not installed globally) * Fix codecov.exe path
This commit is contained in:
committed by
Brendan Forster
parent
5eb9f06b24
commit
f61654a74b
@@ -1,11 +1,16 @@
|
||||
using Cake.Common.Tools.DotNetCore;
|
||||
using System;
|
||||
using Cake.Common;
|
||||
using Cake.Frosting;
|
||||
|
||||
public sealed class FormatCode : FrostingTask<Context>
|
||||
{
|
||||
public override void Run(Context context)
|
||||
{
|
||||
context.DotNetCoreTool("format");
|
||||
int result = context.StartProcess(context.DotNetFormatToolPath);
|
||||
if (result != 0)
|
||||
{
|
||||
throw new Exception($"Failed to execute {context.DotNetFormatToolPath} ({result})");
|
||||
}
|
||||
}
|
||||
|
||||
public override bool ShouldRun(Context context)
|
||||
|
||||
Reference in New Issue
Block a user