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

Switch from Newtonsoft.Json to System.Text.Json #56

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
9 changes: 9 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ jobs:
- name: Test
run: dotnet test --collect:"XPlat Code Coverage" --no-restore --no-build
working-directory: ./src/Fluss.UnitTest
- name: Start PostgreSQL
run: docker compose up -d
working-directory: ./src/Fluss.PostgreSQL.IntegrationTest
- name: Test PostgreSQL
run: dotnet test --collect:"XPlat Code Coverage" --no-restore --no-build
working-directory: ./src/Fluss.PostgreSQL.IntegrationTest
- name: Stop PostgreSQL
run: docker compose down
working-directory: ./src/Fluss.PostgreSQL.IntegrationTest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
Expand Down
6 changes: 3 additions & 3 deletions src/Benchmark/Bench.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

namespace Benchmark;

[GitJob("879573d", baseline: true, id: "0_before")]
[SimpleJob(id: "1_after")]
[GitJob("HEAD", baseline: true, id: "0_before", iterationCount: 10)]
[SimpleJob(id: "1_after", iterationCount: 10)]
[RPlotExporter]
[MemoryDiagnoser]
public class Bench
{
[Params("postgres", "in-memory")]
[Params("postgres")]
public string StorageType { get; set; } = "in-memory";

[IterationSetup]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2"/>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0"/>
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0"/>
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0"/>
<PackageReference Include="Npgsql" Version="8.0.4"/>
<PackageReference Include="xunit" Version="2.9.0"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"/>
</ItemGroup>

<ItemGroup>
<Using Include="Xunit"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Fluss.PostgreSQL\Fluss.PostgreSQL.csproj"/>
</ItemGroup>

<ItemGroup>
<Content Include="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
Loading
Loading