Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade .NET version and dependencies #7

Merged
merged 5 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 7.0.x

- name: publish on version change
id: publish_nuget
Expand Down
16 changes: 8 additions & 8 deletions Casper.Network.SDK.Web.Test/Casper.Network.SDK.Web.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.10" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.15" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="NUnit.Analyzers" Version="3.10.0" />
<PackageReference Include="coverlet.collector" Version="3.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions Casper.Network.SDK.Web.Test/CasperLedgerInteropTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ public void AfterEachTest()
Assert.That(_jsMock.Invocations.Count, Is.Not.Zero);
}

[OneTimeTearDown]
public async Task DisposeArtifacts()
{
await _applicationFactory.DisposeAsync();
}

// [Test]
// public async Task GetVersionTest()
// {
Expand Down
6 changes: 6 additions & 0 deletions Casper.Network.SDK.Web.Test/CasperRPCServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
Assert.That(_casperClient, Is.Not.Null);
}

[TearDown]
public async Task DisposeArtifacts()
{
await _applicationFactory.DisposeAsync();
}

[Test]
public async Task GetStateRootHashTest()
{
Expand Down Expand Up @@ -163,7 +169,7 @@
}

[Test]
public async Task PutDeployWrongSignatureTest()

Check warning on line 172 in Casper.Network.SDK.Web.Test/CasperRPCServiceTests.cs

View workflow job for this annotation

GitHub Actions / integration-test

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 172 in Casper.Network.SDK.Web.Test/CasperRPCServiceTests.cs

View workflow job for this annotation

GitHub Actions / integration-test

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
var srcKey = PublicKey.FromHexString("010b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b");
var tgtKey = PublicKey.FromHexString("010a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a");
Expand Down
6 changes: 6 additions & 0 deletions Casper.Network.SDK.Web.Test/CasperSignerInteropTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ public void AfterEachTest()
Assert.That(_jsObjMock.Invocations.Count, Is.Not.Zero);
}

[OneTimeTearDown]
public async Task DisposeArtifacts()
{
await _applicationFactory.DisposeAsync();
}

[Test]
public async Task GetVersionTest()
{
Expand Down
2 changes: 1 addition & 1 deletion Casper.Network.SDK.Web.Test/testApplication.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Casper.Network.SDK.Web" : {
"NodeAddress": "https://casper-node-proxy.dev.make.services/rpc",
"NodeAddress": "http://52.35.59.254:7777/rpc",
"ClientFactory": "caspernode",
"ChainName": "casper-test",
"SSEHost": "127.0.0.1",
Expand Down
10 changes: 5 additions & 5 deletions Casper.Network.SDK.Web/Casper.Network.SDK.Web.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0</FileVersion>
<PackageVersion>1.1.0</PackageVersion>
Expand All @@ -24,10 +24,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Casper.Network.SDK" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="5.0.13" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="5.0.0" />
<PackageReference Include="Casper.Network.SDK" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.15" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading
Loading