Skip to content

Commit 79a0d06

Browse files
authored
chore: Add Package Validation (#261)
1 parent 586fcc3 commit 79a0d06

File tree

16 files changed

+66
-17
lines changed

16 files changed

+66
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,8 @@ jobs:
3838
tar -xf /tmp/eventide/message-db.tgz --directory /tmp/eventide
3939
(cd /tmp/eventide/message-db-${MESSAGE_DB_VERSION}/database && ./install.sh)
4040
41-
- name: Restore
42-
run: dotnet restore Propulsion.sln
43-
4441
- name: Build
45-
run: dotnet build Propulsion.sln --configuration Release --no-restore
42+
run: dotnet build Propulsion.sln --configuration Release
4643

4744
- name: Run Tests
4845
env:

src/Propulsion.CosmosStore/Propulsion.CosmosStore.fsproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<Sdk Name="Microsoft.DotNet.PackageValidation" Version="1.0.0-preview.7.21379.12" />
4+
35
<PropertyGroup>
46
<TargetFramework>net6.0</TargetFramework>
7+
<PackageValidationBaselineVersion>3.0.0-rc.12</PackageValidationBaselineVersion>
58
</PropertyGroup>
69

710
<ItemGroup>
@@ -23,7 +26,8 @@
2326
</ItemGroup>
2427

2528
<ItemGroup>
26-
<ProjectReference Include="..\Propulsion\Propulsion.fsproj" />
29+
<ProjectReference Condition=" '$(Configuration)' == 'Debug' " Include="..\Propulsion\Propulsion.fsproj" />
30+
<PackageReference Condition=" '$(Configuration)' == 'Release' " Include="Propulsion" Version="[3.0.0-rc.12, 4.0.0)" />
2731
</ItemGroup>
2832

2933
</Project>

src/Propulsion.CosmosStore3/Propulsion.CosmosStore3.fsproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<Sdk Name="Microsoft.DotNet.PackageValidation" Version="1.0.0-preview.7.21379.12" />
4+
35
<PropertyGroup>
46
<TargetFramework>net6.0</TargetFramework>
7+
<PackageValidationBaselineVersion>3.0.0-rc.12</PackageValidationBaselineVersion>
58
<DefineConstants>COSMOSV3</DefineConstants>
69
</PropertyGroup>
710

@@ -42,7 +45,8 @@
4245
</ItemGroup>
4346

4447
<ItemGroup>
45-
<ProjectReference Include="..\Propulsion\Propulsion.fsproj" />
48+
<ProjectReference Condition=" '$(Configuration)' == 'Debug' " Include="..\Propulsion\Propulsion.fsproj" />
49+
<PackageReference Condition=" '$(Configuration)' == 'Release' " Include="Propulsion" Version="[3.0.0-rc.12, 4.0.0)" />
4650
</ItemGroup>
4751

4852
</Project>

src/Propulsion.DynamoStore.Constructs/Propulsion.DynamoStore.Constructs.fsproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<Sdk Name="Microsoft.DotNet.PackageValidation" Version="1.0.0-preview.7.21379.12" />
4+
35
<PropertyGroup>
46
<TargetFramework>net6.0</TargetFramework>
7+
<PackageValidationBaselineVersion>3.0.0-rc.12</PackageValidationBaselineVersion>
58
</PropertyGroup>
69

710
<ItemGroup>

src/Propulsion.DynamoStore.Indexer/Propulsion.DynamoStore.Indexer.fsproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
<PackageReference Include="Amazon.Lambda.DynamoDBEvents" Version="2.1.1" />
3535
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.0" />
3636
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
37-
<ProjectReference Include="..\Propulsion.DynamoStore\Propulsion.DynamoStore.fsproj" />
37+
<ProjectReference Condition=" '$(Configuration)' == 'Debug' " Include="..\Propulsion.DynamoStore\Propulsion.DynamoStore.fsproj" />
38+
<PackageReference Condition=" '$(Configuration)' == 'Release' " Include="Propulsion.DynamoStore" Version="[3.0.0-rc.12, 4.0.0)" />
3839
</ItemGroup>
3940

4041
<!-- The Indexer dotnet new template extracts the published binaries from the tools folder using logic in https://github.com/jet/propulsion/pull/143 -->

src/Propulsion.DynamoStore.Lambda/Propulsion.DynamoStore.Lambda.fsproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<Sdk Name="Microsoft.DotNet.PackageValidation" Version="1.0.0-preview.7.21379.12" />
3+
24
<PropertyGroup>
35
<TargetFramework>net6.0</TargetFramework>
6+
<PackageValidationBaselineVersion>3.0.0-rc.12</PackageValidationBaselineVersion>
47
<DefineConstants>PROPULSION_DYNAMOSTORE_LAMBDA</DefineConstants>
58
</PropertyGroup>
69

@@ -11,7 +14,8 @@
1114
</ItemGroup>
1215

1316
<ItemGroup>
14-
<ProjectReference Include="..\Propulsion.Feed\Propulsion.Feed.fsproj" />
17+
<ProjectReference Condition=" '$(Configuration)' == 'Debug' " Include="..\Propulsion.Feed\Propulsion.Feed.fsproj" />
18+
<PackageReference Condition=" '$(Configuration)' == 'Release' " Include="Propulsion.Feed" Version="[3.0.0-rc.12, 4.0.0)" />
1519
</ItemGroup>
1620

1721
<ItemGroup>

src/Propulsion.DynamoStore.Notifier/Propulsion.DynamoStore.Notifier.fsproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.0" />
4343
<PackageReference Include="AWSSDK.SimpleNotificationService" Version="3.7.4.10" />
4444
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
45-
<ProjectReference Include="..\Propulsion\Propulsion.fsproj" />
45+
<ProjectReference Condition=" '$(Configuration)' == 'Debug' " Include="..\Propulsion\Propulsion.fsproj" />
46+
<PackageReference Condition=" '$(Configuration)' == 'Release' " Include="Propulsion" Version="[3.0.0-rc.12, 4.0.0)" />
4647
</ItemGroup>
4748

4849
<!-- The Notifier dotnet new template extracts the published binaries from the tools folder using logic in https://github.com/jet/propulsion/pull/143 -->

src/Propulsion.DynamoStore/Propulsion.DynamoStore.fsproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<Sdk Name="Microsoft.DotNet.PackageValidation" Version="1.0.0-preview.7.21379.12" />
4+
35
<PropertyGroup>
46
<TargetFramework>net6.0</TargetFramework>
7+
<PackageValidationBaselineVersion>3.0.0-rc.12</PackageValidationBaselineVersion>
58
<DefineConstants>DYNAMOSTORE</DefineConstants>
69
</PropertyGroup>
710

@@ -28,7 +31,8 @@
2831
</ItemGroup>
2932

3033
<ItemGroup>
31-
<ProjectReference Include="..\Propulsion.Feed\Propulsion.Feed.fsproj" />
34+
<ProjectReference Condition=" '$(Configuration)' == 'Debug' " Include="..\Propulsion.Feed\Propulsion.Feed.fsproj" />
35+
<PackageReference Condition=" '$(Configuration)' == 'Release' " Include="Propulsion.Feed" Version="[3.0.0-rc.12, 4.0.0)" />
3236
</ItemGroup>
3337

3438
</Project>

src/Propulsion.EventStore/Propulsion.EventStore.fsproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<Sdk Name="Microsoft.DotNet.PackageValidation" Version="1.0.0-preview.7.21379.12" />
4+
35
<PropertyGroup>
46
<TargetFramework>net6.0</TargetFramework>
7+
<PackageValidationBaselineVersion>3.0.0-rc.12</PackageValidationBaselineVersion>
58
<DefineConstants>EVENTSTORE_LEGACY</DefineConstants>
69
</PropertyGroup>
710

@@ -21,7 +24,8 @@
2124
</ItemGroup>
2225

2326
<ItemGroup>
24-
<ProjectReference Include="..\Propulsion\Propulsion.fsproj" />
27+
<ProjectReference Condition=" '$(Configuration)' == 'Debug' " Include="..\Propulsion\Propulsion.fsproj" />
28+
<PackageReference Condition=" '$(Configuration)' == 'Release' " Include="Propulsion" Version="[3.0.0-rc.12, 4.0.0)" />
2529
</ItemGroup>
2630

2731
</Project>

src/Propulsion.EventStoreDb/Propulsion.EventStoreDb.fsproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<Sdk Name="Microsoft.DotNet.PackageValidation" Version="1.0.0-preview.7.21379.12" />
4+
35
<PropertyGroup>
46
<TargetFramework>net6.0</TargetFramework>
7+
<PackageValidationBaselineVersion>3.0.0-rc.12</PackageValidationBaselineVersion>
58
</PropertyGroup>
69

710
<ItemGroup>
@@ -19,7 +22,8 @@
1922
</ItemGroup>
2023

2124
<ItemGroup>
22-
<ProjectReference Include="..\Propulsion.Feed\Propulsion.Feed.fsproj" />
25+
<ProjectReference Condition=" '$(Configuration)' == 'Debug' " Include="..\Propulsion.Feed\Propulsion.Feed.fsproj" />
26+
<PackageReference Condition=" '$(Configuration)' == 'Release' " Include="Propulsion.Feed" Version="[3.0.0-rc.12, 4.0.0)" />
2327
</ItemGroup>
2428

2529
</Project>

0 commit comments

Comments
 (0)