Skip to content

Commit

Permalink
Update fsproj configuration with some extras (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelo authored Jul 21, 2022
1 parent 5b407e1 commit 33b4463
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 67 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,16 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
dotnet-version: "6.0.202"

- name: dotnet restore
env:
DOTNET_NOLOGO: true
run: |
- run: |
dotnet restore
dotnet tool restore
env:
DOTNET_NOLOGO: true
- name: fantomas
run: |
dotnet tool run fantomas -- --check --recurse src/
- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-restore --verbosity normal
- run: dotnet fantomas -- --check --recurse src/
- run: dotnet build --configuration Release --no-restore -warnaserror
- run: dotnet test --no-build
16 changes: 6 additions & 10 deletions .github/workflows/publish_to_NuGet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Create the package
run: dotnet pack --configuration Release -o Release -p:PackageVersion=${GITHUB_REF/refs\/tags\/v/''} --include-source
- name: Publish the package to NuGet

- run: dotnet restore
- run: dotnet build --configuration Release --no-restore -warnaserror
- run: dotnet test --no-build
- run: dotnet pack --configuration Release -o Release -p:PackageVersion=${GITHUB_REF/refs\/tags\/v/''}
- run: dotnet nuget push Release/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json -k ${NUGET_AUTH_TOKEN}
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
run: dotnet nuget push Release/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json -k ${NUGET_AUTH_TOKEN}
14 changes: 0 additions & 14 deletions Makefile

This file was deleted.

12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
# Insurello.RabbitMqClient

### Why does it exist?

### Inspiration

### Types

### Example

```fsharp
```
An F# wrapper around RabbitMq.Client version 5.

[![Insurello](https://gitcdn.xyz/repo/insurello/elm-swedish-bank-account-number/master/insurello.svg)](https://jobb.insurello.se/departments/product-tech)
17 changes: 4 additions & 13 deletions src/Insurello.RabbitMqClient/Insurello.RabbitMqClient.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<PackageId>Insurello.RabbitMqClient</PackageId>
<Authors>Insurello</Authors>
<Company>Insurello</Company>
Expand All @@ -12,18 +12,11 @@

<!-- Source Link configuration -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<!-- Include PDB in the main package as current tooling is lacking.
Shall be removed in the future when tooling has catched up. -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<EmbedSources>true</EmbedSources>

<!-- Embed symbols containing Source Link in the main file (exe/dll) -->
<DebugType>embedded</DebugType>

<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -37,9 +30,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Insurello.AsyncExtra" Version="1.0.0" />
<PackageReference Include="Insurello.AsyncExtra" Version="3.0.0" />
<PackageReference Include="RabbitMq.Client" Version="5.1.2" />
</ItemGroup>


</Project>
6 changes: 3 additions & 3 deletions src/Insurello.RabbitMqClient/MqClient.fs
Original file line number Diff line number Diff line change
Expand Up @@ -733,14 +733,14 @@ module MqClient =
OnUnregistered =
fun _ ->
logError (null, "Got OnUnregistered event", ())
exit 9
exit 10

OnConsumerCancelled =
fun _ ->
logError (null, "Got OnConsumerCancelled event", ())
exit 9
exit 11

OnShutdown =
fun _ ->
logError (null, "Got OnShutdown event", ())
exit 9 }
exit 12 }

0 comments on commit 33b4463

Please sign in to comment.