-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create build.yml * Update Nerdbank.GitVersioning for GitHub actions support * Attempt to work around shallow clone issues with LibGit2Sharp See: dotnet/Nerdbank.GitVersioning#423 See: libgit2/libgit2sharp#1775 * Skip RabbitMQ integration tests when no connection string configured * Remove dummy service bus connection string to skip Service Bus integration tests * Skip additional service bus tests when no connection string available * Skip additional RabbitMQ tests when no connection string is available * Attempt to get rabbitmq service container working * Attempt to connect to rabbitmq service container for tests * Skip rabbitmq management tests if neither connectionstring or management uri configured * Add service bus connection string secret * Attempted OS matrix builds for linux and windows builds * Revert "Attempted OS matrix builds for linux and windows builds" * Add coverlet flags to dotnet test * Attempt to store test coverage artifact * Remove flaky rabbitmq connection finalizer tests
- Loading branch information
1 parent
5592819
commit 536ac12
Showing
31 changed files
with
248 additions
and
300 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,37 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
rabbitmq: | ||
image: rabbitmq:3-management | ||
ports: | ||
- 5672:5672 | ||
- 15672:15672 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: .NET Build | ||
run: dotnet build OpenEventSourcing.sln -c Release | ||
|
||
- name: .NET Test | ||
run: dotnet test OpenEventSourcing.sln --no-build -c Release /p:CollectCoverage=true /p:CoverletOutput='../../TestCoverage/' /p:MergeWith='../../TestCoverage/coverage.json' /p:CoverletOutputFormat="opencover" /p:Exclude="[OpenEventSourcing.Samples.*]" | ||
env: | ||
OPENEVENTSOURCING_RABBITMQ__CONNECTIONSTRING: amqp://guest:guest@localhost:5672/ | ||
OPENEVENTSOURCING_RABBITMQ__MANAGEMENTURI: http://localhost:15672/ | ||
OPENEVENTSOURCING_AZURE__SERVICEBUS__CONNECTIONSTRING: ${{ secrets.AZURE_SERVICEBUS_CONNECTIONSTRING }} | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-coverage | ||
path: TestCoverage/* |
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
tests/OpenEventSourcing.Azure.ServiceBus.Tests/appsettings.json
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"Azure": { | ||
"ServiceBus": { | ||
"ConnectionString": "Endpoint=sb://openeventsourcing.servicebus.windows.net/;SharedAccessKeyName=DUMMY;SharedAccessKey=DUMMY" | ||
"ConnectionString": "" | ||
} | ||
} | ||
} |
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.