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 07d2436
Show file tree
Hide file tree
Showing 10 changed files with 540 additions and 11 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,17 @@ jobs:
run: dotnet build --no-restore
working-directory: ./src
- name: Test
run: dotnet test --collect:"XPlat Code Coverage" --no-restore --no-build
run: dotnet test --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
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 07d2436

Please sign in to comment.