Skip to content

Commit 9adbfc8

Browse files
committed
Update Pipeline
1 parent b3b23b6 commit 9adbfc8

File tree

11 files changed

+429
-32
lines changed

11 files changed

+429
-32
lines changed

.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+
}

src/TurboHttp.Tests/TurboHttp.Tests.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
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>
11-
<PackageReference Include="Akka.Streams.TestKit" />
12-
<PackageReference Include="Akka.TestKit.Xunit" />
139
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" />
1410
<PackageReference Include="xunit.v3.mtp-v2" />
1511
</ItemGroup>

src/TurboHttp.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
..\CLAUDE.md = ..\CLAUDE.md
1515
Directory.Build.props = Directory.Build.props
1616
Directory.Packages.props = Directory.Packages.props
17-
..\global.json = ..\global.json
17+
..\.github\workflows\docs.yml = ..\.github\workflows\docs.yml
1818
EndProjectSection
1919
EndProject
2020
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TurboHttp", "TurboHttp\TurboHttp.csproj", "{0E92E24A-1015-4898-ACBA-32F7F4BA94CF}"

src/TurboHttp/TurboHttp.csproj

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,38 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<ImplicitUsings>disable</ImplicitUsings>
4+
<Authors>st0o0</Authors>
5+
<Title>TurboHttp</Title>
6+
<PackageTags>HttpClient;Akka</PackageTags>
7+
<PackageIcon>icon.png</PackageIcon>
8+
<PackageReadmeFile>README.md</PackageReadmeFile>
9+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
10+
<PackageProjectUrl>https://github.com/st0o0/TurboHttp</PackageProjectUrl>
11+
<RepositoryUrl>https://github.com/st0o0/TurboHttp.git</RepositoryUrl>
12+
<RepositoryType>git</RepositoryType>
13+
<Copyright>Copyright (c) 2025-$([System.DateTime]::Now.Year) st0o0</Copyright>
14+
</PropertyGroup>
15+
<PropertyGroup>
516
<IsPackable>true</IsPackable>
17+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
18+
</PropertyGroup>
19+
<PropertyGroup>
20+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
21+
<DebugType>embedded</DebugType>
22+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
623
</PropertyGroup>
724

825
<ItemGroup>
9-
<PackageReference Include="Akka.Logger.Extensions.Logging" />
10-
<PackageReference Include="Akka.Streams" />
11-
<PackageReference Include="Servus.Akka" />
26+
<None Include="../../README.md" Pack="true" Visible="false" PackagePath="\"/>
27+
<None Include="../../LICENSE" Pack="true" Visible="false" PackagePath="\"/>
28+
<None Include="../../docs/public/logo/icon.png" Visible="false" Pack="true" PackagePath="\"/>
29+
<None Remove="packages.lock.json"/>
30+
</ItemGroup>
31+
32+
<ItemGroup>
33+
<PackageReference Include="Akka.Logger.Extensions.Logging"/>
34+
<PackageReference Include="Akka.Streams"/>
35+
<PackageReference Include="Servus.Akka"/>
1236
</ItemGroup>
1337
<ItemGroup>
1438
<InternalsVisibleTo Include="TurboHttp.Tests"/>

0 commit comments

Comments
 (0)