-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from rabbitmq/rabbitmq-stream-dotnet-client-69
Port useful things from RabbitMQ .NET Client project
- Loading branch information
Showing
12 changed files
with
1,276 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: rabbitmq-stream-dotnet-client | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build-win32: | ||
name: build/test on windows-latest | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
- name: Cache installers | ||
uses: actions/cache@v2 | ||
with: | ||
# Note: the cache path is relative to the workspace directory | ||
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action | ||
path: ~/installers | ||
key: ${{ runner.os }}-v0-${{ hashFiles('tools/versions.json') }} | ||
- name: Cache NuGet packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.nuget/packages | ||
~/AppData/Local/NuGet/v3-cache | ||
key: ${{ runner.os }}-v1-nuget-${{ hashFiles('**/*.csproj') }} | ||
restore-keys: | | ||
${{ runner.os }}-v1-nuget- | ||
- name: Install and start RabbitMQ | ||
run: ./tools/install.ps1 | ||
- name: List NuGet sources | ||
run: dotnet nuget locals all --list | ||
- name: Restore | ||
run: dotnet restore --verbosity=normal | ||
- name: Build | ||
run: dotnet build --no-restore --verbosity=normal | ||
- name: Test | ||
run: dotnet test --no-build --logger "console;verbosity=detailed" | ||
|
||
build: | ||
name: build/test on ubuntu-latest | ||
|
||
runs-on: ubuntu-latest | ||
|
||
services: | ||
rabbitmq: | ||
image: pivotalrabbitmq/rabbitmq-stream | ||
env: | ||
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: -rabbitmq_stream advertised_host localhost | ||
ports: | ||
- 5552:5552 | ||
- 5672:5672 | ||
- 15672:15672 | ||
- 1883:1883 | ||
- 61613:61613 | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.x | ||
- name: Cache NuGet packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.nuget/packages | ||
~/.local/share/NuGet/v3-cache | ||
key: ${{ runner.os }}-v1-nuget-${{ hashFiles('**/*.csproj') }} | ||
restore-keys: | | ||
${{ runner.os }}-v1-nuget- | ||
- name: List NuGet sources | ||
run: dotnet nuget locals all --list | ||
- name: Restore | ||
run: dotnet restore --verbosity=normal | ||
- name: Build | ||
run: dotnet build --no-restore --verbosity=normal | ||
- name: Test | ||
run: dotnet test --no-build --logger "console;verbosity=detailed" /p:AltCover=true | ||
- name: Upload code coverage to Codecov | ||
run: bash <(curl -s https://codecov.io/bash) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.