Skip to content

Commit

Permalink
Upgrade Cake to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Marusyk committed Sep 10, 2022
1 parent c555437 commit 0bd6713
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "1.3.0",
"version": "2.0.0",
"commands": [
"dotnet-cake"
]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x

- name: Cake Action
uses: cake-build/[email protected]
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x

- name: Cake Action
uses: cake-build/[email protected]
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x

- name: Cake Action
uses: cake-build/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nuget-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x

- name: Cake Action
uses: cake-build/[email protected]
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ C# Binary tree
This project contains a cross platform Binary Tree implementation

[![Build](https://github.com/Marusyk/BinaryTree/actions/workflows/builds.yml/badge.svg)](https://github.com/Marusyk/BinaryTree/actions/workflows/builds.yml)
[![AppVeyor](https://ci.appveyor.com/api/projects/status/l3kmfu18f4fbmuvu?svg=true)](https://ci.appveyor.com/project/Marusyk/binarytree)
[![AppVeyor](https://ci.appveyor.com/api/projects/status/l3kmfu18f4fbmuvu?svg=true)](https://ci.appveyor.com/project/Marusyk/binarytree)
[![GitHub release](https://badge.fury.io/gh/Marusyk%2FBinaryTree.svg)](https://github.com/Marusyk/BinaryTree/releases/tag/v5.2.0)
[![NuGet package](https://badge.fury.io/nu/BinaryTree.svg)](https://www.nuget.org/packages/BinaryTree/)
[![NuGet](https://img.shields.io/nuget/dt/BinaryTree.svg)](https://www.nuget.org/packages/BinaryTree/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Marusyk/BinaryTree/blob/main/LICENSE)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Marusyk/BinaryTree/blob/main/LICENSE)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/Marusyk/BinaryTree/blob/main/CONTRIBUTING.md)

# Code Coverage
Expand Down Expand Up @@ -85,7 +85,7 @@ To display all elements of tree, use:
```csharp
foreach (var item in binaryTree)
{
Console.Write(item + " ");
Console.Write(item + " ");
}
```

Expand All @@ -96,11 +96,11 @@ binaryTree.PrintToConsole();
```

## Operations complexity
<table>
<table>
<tr>
<td colspan=8>Time Complexity</td>
<td>Space Complexity</td>
</tr>
</tr>
<tr>
<td colspan=4>Avarage</td>
<td colspan=4 >Worst</td>
Expand Down
10 changes: 5 additions & 5 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ Task("Restore")
.IsDependentOn("Clean")
.Does(() =>
{
DotNetCoreRestore(projectFile);
DotNetRestore(projectFile);
});

Task("Build")
.IsDependentOn("Restore")
.Does(() =>
{
DotNetCoreBuild(projectFile, new DotNetCoreBuildSettings
DotNetBuild(projectFile, new DotNetCoreBuildSettings
{
Configuration = configuration,
NoRestore = true,
NoLogo = true
});
});

Task("Test")
Task("Test")
.IsDependentOn("Build")
.Does(() =>
{
Expand Down Expand Up @@ -77,7 +77,7 @@ Task("NuGetPack")
.IsDependentOn("UploadTestReport")
.Does(() =>
{
DotNetCorePack(projectFile, new DotNetCorePackSettings
DotNetPack(projectFile, new DotNetCorePackSettings
{
Configuration = configuration,
NoRestore = true,
Expand All @@ -93,7 +93,7 @@ Task("NuGetPush")
.WithCriteria(!string.IsNullOrWhiteSpace(nugetApiKey))
.Does(() =>
{
DotNetCoreNuGetPush(artifactsDirectory.CombineWithFilePath("*.nupkg").FullPath, new DotNetCoreNuGetPushSettings
DotNetNuGetPush(artifactsDirectory.CombineWithFilePath("*.nupkg").FullPath, new DotNetCoreNuGetPushSettings
{
Source = nugetApiUrl,
ApiKey = nugetApiKey
Expand Down

0 comments on commit 0bd6713

Please sign in to comment.