Skip to content

Commit da19511

Browse files
committed
Create dotnet.yml
1 parent 40918c6 commit da19511

13 files changed

+55
-81
lines changed

Diff for: .github/workflows/dotnet.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: .NET
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v1
15+
with:
16+
dotnet-version: 5.0.x
17+
18+
- name: Restore dependencies
19+
run: dotnet restore
20+
21+
- name: Build
22+
run: dotnet build --no-restore -c:Release
23+
24+
- name: Tests with coverage
25+
run: dotnet test ./NetFabric.DoublyLinkedList.Tests/NetFabric.DoublyLinkedList.Tests.csproj --no-build -c:Release -f:net5.0 -p:CollectCoverage=true -p:CoverletOutputFormat=lcov -p:CoverletOutput=TestResults/
26+
27+
- name: Publish coverage report to coveralls.io
28+
uses: coverallsapp/github-action@master
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
path-to-lcov: ./NetFabric.DoublyLinkedList.Tests/TestResults/coverage.net5.0.info

Diff for: Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
9+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
1010
<PrivateAssets>all</PrivateAssets>
1111
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1212
</PackageReference>

Diff for: NetFabric.DoublyLinkedList.Tests/AddAfterTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void NullNode()
2020
// Assert
2121
action.Must()
2222
.Throw<ArgumentNullException>()
23-
.EvaluatesTrue(exception =>
23+
.EvaluateTrue(exception =>
2424
exception.ParamName == "node");
2525
}
2626

Diff for: NetFabric.DoublyLinkedList.Tests/AddBeforeTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void NullNode()
2020
// Assert
2121
action.Must()
2222
.Throw<ArgumentNullException>()
23-
.EvaluatesTrue(exception =>
23+
.EvaluateTrue(exception =>
2424
exception.ParamName == "node");
2525
}
2626

Diff for: NetFabric.DoublyLinkedList.Tests/AddFirstTests.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void AddNullEnumerable()
2020
// Assert
2121
action.Must()
2222
.Throw<ArgumentNullException>()
23-
.EvaluatesTrue(exception =>
23+
.EvaluateTrue(exception =>
2424
exception.ParamName == "collection");
2525
}
2626

@@ -36,7 +36,7 @@ void AddNullCollection()
3636
// Assert
3737
action.Must()
3838
.Throw<ArgumentNullException>()
39-
.EvaluatesTrue(exception =>
39+
.EvaluateTrue(exception =>
4040
exception.ParamName == "collection");
4141
}
4242

@@ -52,7 +52,7 @@ void AddNullList()
5252
// Assert
5353
action.Must()
5454
.Throw<ArgumentNullException>()
55-
.EvaluatesTrue(exception =>
55+
.EvaluateTrue(exception =>
5656
exception.ParamName == "list");
5757
}
5858

Diff for: NetFabric.DoublyLinkedList.Tests/AddLastTests.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void AddNullEnumerable()
2020
// Assert
2121
action.Must()
2222
.Throw<ArgumentNullException>()
23-
.EvaluatesTrue(exception =>
23+
.EvaluateTrue(exception =>
2424
exception.ParamName == "collection");
2525
}
2626

@@ -36,7 +36,7 @@ void AddNullCollection()
3636
// Assert
3737
action.Must()
3838
.Throw<ArgumentNullException>()
39-
.EvaluatesTrue(exception =>
39+
.EvaluateTrue(exception =>
4040
exception.ParamName == "collection");
4141
}
4242

@@ -52,7 +52,7 @@ void AddNullList()
5252
// Assert
5353
action.Must()
5454
.Throw<ArgumentNullException>()
55-
.EvaluatesTrue(exception =>
55+
.EvaluateTrue(exception =>
5656
exception.ParamName == "list");
5757
}
5858

Diff for: NetFabric.DoublyLinkedList.Tests/AppendTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void AppendNullLeft()
1919
// Assert
2020
action.Must()
2121
.Throw<ArgumentNullException>()
22-
.EvaluatesTrue(exception =>
22+
.EvaluateTrue(exception =>
2323
exception.ParamName == "left");
2424
}
2525

@@ -34,7 +34,7 @@ void AppendNullRight()
3434
// Assert
3535
action.Must()
3636
.Throw<ArgumentNullException>()
37-
.EvaluatesTrue(exception =>
37+
.EvaluateTrue(exception =>
3838
exception.ParamName == "right");
3939
}
4040

Diff for: NetFabric.DoublyLinkedList.Tests/NetFabric.DoublyLinkedList.Tests.csproj

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.1;netcoreapp3.0</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
10-
<PackageReference Include="NetFabric.Assertive" Version="1.8.0" />
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
10+
<PackageReference Include="NetFabric.Assertive" Version="3.0.1" />
1111
<PackageReference Include="xunit" Version="2.4.1" />
12-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
12+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1515
</PackageReference>
16-
<PackageReference Include="coverlet.msbuild" Version="2.7.0">
16+
<PackageReference Include="coverlet.msbuild" Version="3.0.3">
1717
<PrivateAssets>all</PrivateAssets>
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
</PackageReference>

Diff for: NetFabric.DoublyLinkedList.Tests/RemoveTests.cs

+4-6
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ void RemoveLast(IReadOnlyList<int> collection, IReadOnlyCollection<int> expected
143143
.BeEqualTo(expectedCollection.Reverse());
144144
}
145145

146-
[Theory]
147-
[MemberData(nameof(RemoveFirstData))]
148-
void RemoveFirst_WithEmpty_MustThrow(IReadOnlyList<int> collection, IReadOnlyCollection<int> expectedCollection)
146+
[Fact]
147+
void RemoveFirst_WithEmpty_MustThrow()
149148
{
150149
// Arrange
151150
var list = new DoublyLinkedList<int>();
@@ -158,9 +157,8 @@ void RemoveFirst_WithEmpty_MustThrow(IReadOnlyList<int> collection, IReadOnlyCol
158157
.Throw<InvalidOperationException>();
159158
}
160159

161-
[Theory]
162-
[MemberData(nameof(RemoveFirstData))]
163-
void RemoveLast_WithEmpty_MustThrow(IReadOnlyList<int> collection, IReadOnlyCollection<int> expectedCollection)
160+
[Fact]
161+
void RemoveLast_WithEmpty_MustThrow()
164162
{
165163
// Arrange
166164
var list = new DoublyLinkedList<int>();

Diff for: NetFabric.DoublyLinkedList.sln

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ VisualStudioVersion = 16.0.29006.145
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{3E6F2E8E-3811-4C1C-BE4C-12C3B88C945F}"
77
ProjectSection(SolutionItems) = preProject
8-
.gitattributes = .gitattributes
98
.gitignore = .gitignore
10-
azure-pipelines.yml = azure-pipelines.yml
119
Directory.Build.props = Directory.Build.props
1210
LICENSE = LICENSE
1311
README.md = README.md
12+
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
1413
EndProjectSection
1514
EndProject
1615
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetFabric.DoublyLinkedList", "NetFabric.DoublyLinkedList\NetFabric.DoublyLinkedList.csproj", "{6ACA7905-0F4A-47A9-8D5F-26B5EAD6727B}"

Diff for: NetFabric.DoublyLinkedList/NetFabric.DoublyLinkedList.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<PrivateAssets>all</PrivateAssets>
3333
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3434
</PackageReference>
35-
<PackageReference Include="NetFabric.Hyperlinq.Analyzer" Version="1.5.0">
35+
<PackageReference Include="NetFabric.Hyperlinq.Analyzer" Version="2.0.3">
3636
<PrivateAssets>all</PrivateAssets>
3737
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3838
</PackageReference>

Diff for: README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# NetFabric.DoublyLinkedList
22

33
![GitHub last commit (master)](https://img.shields.io/github/last-commit/NetFabric/NetFabric.DoublyLinkedList/master.svg?logo=github&logoColor=lightgray&style=popout-square)
4-
[![Build](https://img.shields.io/azure-devops/build/aalmada/eca7a52e-1f0d-4228-bef8-344d93764eb6/5/master.svg?style=popout-square&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiI+PGcgZmlsbD0iIzlmOWY5ZiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDloMXYyaDJ2MUgwek0uNjY3IDRoMy4wNjhMNi4yMDMuNDQ0QzYuMzkuMTY3IDYuNzAxIDAgNy4wMzUgMEgxMS41YS41LjUgMCAwIDEgLjUuNXY0LjQ2NWExIDEgMCAwIDEtLjQ0NS44MzJMOCA4LjI2NXYzLjA2OGEuNjY3LjY2NyAwIDAgMS0uNjY3LjY2N0g1bC0xLTEgMS4yNS0xLjI1LTEtMUwzIDEwIDIgOWwxLjI1LTEuMjUtMS0xTDEgOCAwIDdWNC42NjdDMCA0LjI5OS4yOTggNCAuNjY3IDR6TTEwLjUgM2ExLjUgMS41IDAgMSAxLTMgMCAxLjUgMS41IDAgMCAxIDMgMHoiLz48L2c+PC9zdmc+)](https://dev.azure.com/aalmada/NetFabric.DoublyLinkedList)
5-
[![Unit Tests](https://img.shields.io/azure-devops/tests/aalmada/eca7a52e-1f0d-4228-bef8-344d93764eb6/5/master.svg?style=popout-square&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiI+PGcgZmlsbD0iIzlmOWY5ZiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDloMXYyaDJ2MUgwek0uNjY3IDRoMy4wNjhMNi4yMDMuNDQ0QzYuMzkuMTY3IDYuNzAxIDAgNy4wMzUgMEgxMS41YS41LjUgMCAwIDEgLjUuNXY0LjQ2NWExIDEgMCAwIDEtLjQ0NS44MzJMOCA4LjI2NXYzLjA2OGEuNjY3LjY2NyAwIDAgMS0uNjY3LjY2N0g1bC0xLTEgMS4yNS0xLjI1LTEtMUwzIDEwIDIgOWwxLjI1LTEuMjUtMS0xTDEgOCAwIDdWNC42NjdDMCA0LjI5OS4yOTggNCAuNjY3IDR6TTEwLjUgM2ExLjUgMS41IDAgMSAxLTMgMCAxLjUgMS41IDAgMCAxIDMgMHoiLz48L2c+PC9zdmc+)](https://dev.azure.com/aalmada/NetFabric.DoublyLinkedList)
6-
[![Coverage](https://img.shields.io/azure-devops/coverage/aalmada/eca7a52e-1f0d-4228-bef8-344d93764eb6/5/master.svg?style=popout-square&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiI+PGcgZmlsbD0iIzlmOWY5ZiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDloMXYyaDJ2MUgwek0uNjY3IDRoMy4wNjhMNi4yMDMuNDQ0QzYuMzkuMTY3IDYuNzAxIDAgNy4wMzUgMEgxMS41YS41LjUgMCAwIDEgLjUuNXY0LjQ2NWExIDEgMCAwIDEtLjQ0NS44MzJMOCA4LjI2NXYzLjA2OGEuNjY3LjY2NyAwIDAgMS0uNjY3LjY2N0g1bC0xLTEgMS4yNS0xLjI1LTEtMUwzIDEwIDIgOWwxLjI1LTEuMjUtMS0xTDEgOCAwIDdWNC42NjdDMCA0LjI5OS4yOTggNCAuNjY3IDR6TTEwLjUgM2ExLjUgMS41IDAgMSAxLTMgMCAxLjUgMS41IDAgMCAxIDMgMHoiLz48L2c+PC9zdmc+)](https://dev.azure.com/aalmada/NetFabric.DoublyLinkedList)
4+
[![Build](https://img.shields.io/github/workflow/status/NetFabric/NetFabric.DoublyLinkedList/.NET?style=flat-square&logo=github)](https://github.com/NetFabric/NetFabric.DoublyLinkedList/actions/workflows/dotnet.yml)
5+
[![Coverage](https://img.shields.io/coveralls/github/NetFabric/NetFabric.DoublyLinkedList/master?style=flat-square&logo=coveralls)](https://coveralls.io/github/NetFabric/NetFabric.DoublyLinkedList)
76
[![NuGet Version](https://img.shields.io/nuget/v/NetFabric.DoublyLinkedList.svg?style=popout-square&logoColor=lightgray&logo=nuget)](https://www.nuget.org/packages/NetFabric.DoublyLinkedList/)
87
[![NuGet Downloads](https://img.shields.io/nuget/dt/NetFabric.DoublyLinkedList.svg?style=popout-square&logoColor=lightgray&logo=nuget)](https://www.nuget.org/packages/NetFabric.DoublyLinkedList/)
98

Diff for: azure-pipelines.yml

-53
This file was deleted.

0 commit comments

Comments
 (0)