Skip to content

Commit fe15f7f

Browse files
committed
Updated the CassandraCSharpDriver and did some cleaning
1 parent 0d83a76 commit fe15f7f

File tree

73 files changed

+2366
-1787
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+2366
-1787
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
name: Cassandra Fluent library
22

33
on:
4-
push:
54
pull_request:
6-
branches: [master, dev]
5+
push:
6+
branches: [master]
77

88
jobs:
99
build:
1010
runs-on: ubuntu-latest
1111

12-
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-dotnet@v1
15-
with:
16-
dotnet-version: "3.1.x"
17-
18-
- name: Restore packages
19-
run: dotnet restore
20-
21-
- name: Build project
22-
run: dotnet build
23-
24-
test:
25-
needs: build
26-
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
dotnet: ["3.1.x", "5.0.x", "7.0.x"]
2715

2816
services:
2917
cfm-cassandra:
@@ -37,10 +25,18 @@ jobs:
3725
options: --health-cmd "cqlsh --debug" --health-interval 10s --health-retries 10
3826

3927
steps:
40-
- uses: actions/checkout@v2
41-
- uses: actions/setup-dotnet@v1
28+
- uses: actions/checkout@v3
29+
30+
- name: Setup dotnet
31+
uses: actions/setup-dotnet@v3
4232
with:
43-
dotnet-version: "3.1.x"
33+
dotnet-version: ${{ matrix.dotnet }}
34+
35+
- name: Restoring packages
36+
run: dotnet restore
37+
38+
- name: Building
39+
run: dotnet build --configuration Release --no-restore
4440

45-
- name: Run tests
46-
run: dotnet test
41+
- name: Testing
42+
run: dotnet test --no-restore --collect:"XPlat Code Coverage" --results-directory ./TestResults/.coverage
Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
5-
<CodeAnalysisRuleSet>$(SolutionDir)\StyleCopRules.ruleset</CodeAnalysisRuleSet>
6-
</PropertyGroup>
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.1</TargetFramework>
5+
<NoWarn>$(NoWarn);1591</NoWarn>
6+
<LangVersion>10</LangVersion>
7+
</PropertyGroup>
78

8-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='$(Configuration)|AnyCPU'">
9-
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
10-
</PropertyGroup>
9+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='$(Configuration)|AnyCPU'">
10+
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
11+
</PropertyGroup>
1112

12-
<ItemGroup>
13-
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.10" />
14-
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.1.10" />
15-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.10" />
16-
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.10" />
17-
<PackageReference Include="Moq" Version="4.15.2" />
18-
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
19-
<PrivateAssets>all</PrivateAssets>
20-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
21-
</PackageReference>
22-
</ItemGroup>
23-
24-
<ItemGroup>
25-
<ProjectReference Include="..\Cassandra.Fluent.Migrator\Cassandra.Fluent.Migrator.csproj" />
26-
</ItemGroup>
13+
<ItemGroup>
14+
<ProjectReference Include="..\Cassandra.Fluent.Migrator\Cassandra.Fluent.Migrator.csproj"/>
15+
</ItemGroup>
2716

2817
</Project>

Cassandra.Fluent.Migrator.Common/Configuration/CassandraExtensions.cs

Lines changed: 0 additions & 96 deletions
This file was deleted.

Cassandra.Fluent.Migrator.Common/Configuration/InitialMigration.cs

Lines changed: 0 additions & 48 deletions
This file was deleted.

Cassandra.Fluent.Migrator.Common/Configuration/Models/Address.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

Cassandra.Fluent.Migrator.Common/Configuration/Models/Users.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)