Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorstenThiel committed Oct 5, 2024
1 parent a0dcc2e commit 282ce62
Show file tree
Hide file tree
Showing 10 changed files with 528 additions and 11 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ jobs:
- name: Build
run: dotnet build --no-restore
working-directory: ./src
- name: Start PostgreSQL
run: docker compose up -d
working-directory: ./src/Fluss.PostgreSQL.IntegrationTest
- name: Test
run: dotnet test --collect:"XPlat Code Coverage" --no-restore --no-build
working-directory: ./src/Fluss.UnitTest
working-directory: ./src
- 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
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

0 comments on commit 282ce62

Please sign in to comment.