Skip to content

Commit 6c1d69a

Browse files
committed
Update Pipeline
1 parent b3b23b6 commit 6c1d69a

16 files changed

Lines changed: 429 additions & 775 deletions

.github/workflows/build-and-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Build and Release NuGet Package
2+
23
on:
34
push:
45
branches: [ "main" ]

src/Directory.Build.props

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@
22

33
<PropertyGroup>
44
<TargetFramework>net10.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
56
<Nullable>enable</Nullable>
6-
<LangVersion>latest</LangVersion>
7-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
87
</PropertyGroup>
98

10-
<!-- Package metadata — applies only to the packable TurboHttp project -->
11-
<PropertyGroup Condition="'$(IsPackable)' == 'true'">
12-
<Authors>st0o0</Authors>
13-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
14-
<RepositoryUrl>https://github.com/st0o0/TurboHttp</RepositoryUrl>
15-
<PackageProjectUrl>https://turbohttp.st0o0.net</PackageProjectUrl>
16-
<PackageReadmeFile>README.md</PackageReadmeFile>
9+
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
10+
<IsPackable>false</IsPackable>
1711
</PropertyGroup>
1812

1913
</Project>

src/TurboHttp.Benchmarks/TurboHttp.Benchmarks.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
<OutputType>Exe</OutputType>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<Optimize>true</Optimize>
7+
<IsPackable>false</IsPackable>
78
</PropertyGroup>
89

910
<ItemGroup>
10-
<PackageReference Include="BenchmarkDotNet" />
11+
<PackageReference Include="BenchmarkDotNet"/>
1112
</ItemGroup>
1213

1314
<ItemGroup>

src/TurboHttp.IntegrationTests/TurboHttp.IntegrationTests.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<IsPackable>false</IsPackable>
7-
<IsTestProject>false</IsTestProject>
5+
<IsTestProject>true</IsTestProject>
86
</PropertyGroup>
97

108
<ItemGroup>

src/TurboHttp.Tests/RFC9113/28_Http2DecoderHeaderLimitsTests.cs renamed to src/TurboHttp.StreamTests/RFC9113/23_Http2DecoderHeaderLimitsTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System.Buffers;
2-
using System.Net.Http;
31
using Akka.Actor;
42
using Akka.Streams;
53
using Akka.Streams.Dsl;
@@ -8,7 +6,7 @@
86
using TurboHttp.Protocol.RFC9113;
97
using TurboHttp.Streams.Stages.Decoding;
108

11-
namespace TurboHttp.Tests.RFC9113;
9+
namespace TurboHttp.StreamTests.RFC9113;
1210

1311
/// <summary>
1412
/// Tests HTTP/2 header size limits enforced by the stream stage (security: DoS protection).

src/TurboHttp.StreamTests/TurboHttp.StreamTests.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<IsPackable>false</IsPackable>
7-
<NoWarn>xUnit1051</NoWarn>
5+
<IsTestProject>true</IsTestProject>
86
</PropertyGroup>
97

108
<ItemGroup>

src/TurboHttp.Tests/Transport/ConnectionHandleTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Net;
33
using System.Threading.Channels;
44
using Akka.Actor;
5-
using Akka.TestKit.Xunit;
65
using TurboHttp.Internal;
76
using TurboHttp.Transport;
87

@@ -16,7 +15,7 @@ namespace TurboHttp.Tests.Transport;
1615
/// Actor under test: <see cref="ConnectionHandle"/>.
1716
/// Validates that the handle correctly exposes the underlying channel pair and host key.
1817
/// </remarks>
19-
public sealed class ConnectionHandleTests : TestKit
18+
public sealed class ConnectionHandleTests
2019
{
2120
private ConnectionHandle CreateHandle()
2221
{
@@ -114,4 +113,4 @@ public async Task Should_NotThrow_WhenConcurrentWritesAndReadsOccur()
114113
// After writer completes, the final value should be eventually visible
115114
Assert.Equal(targetValue, handle.MaxConcurrentStreams);
116115
}
117-
}
116+
}

0 commit comments

Comments
 (0)