-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
525 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: HealthChecks Pulsar CD | ||
|
||
on: | ||
push: | ||
tags: | ||
- release-pulsar-* | ||
- release-all-* | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/reusable_cd_workflow.yml | ||
secrets: inherit | ||
with: | ||
BUILD_CONFIG: Release | ||
PROJECT_PATH: ./src/HealthChecks.Pulsar/HealthChecks.Pulsar.csproj | ||
PACKAGE_NAME: AspNetCore.HealthChecks.Pulsar |
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,17 @@ | ||
name: HealthChecks Pulsar Preview CD | ||
|
||
on: | ||
push: | ||
tags: | ||
- preview-pulsar-* | ||
- preview-all-* | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/reusable_cd_preview_workflow.yml | ||
secrets: inherit | ||
with: | ||
BUILD_CONFIG: Release | ||
VERSION_SUFFIX_PREFIX: rc1 | ||
PROJECT_PATH: ./src/HealthChecks.Pulsar/HealthChecks.Pulsar.csproj | ||
PACKAGE_NAME: AspNetCore.HealthChecks.Pulsar |
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,75 @@ | ||
name: HealthChecks Pulsar CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- src/HealthChecks.Pulsar/** | ||
- test/HealthChecks.Pulsar.Tests/** | ||
- test/_SHARED/** | ||
- .github/workflows/healthchecks_pulsar_ci.yml | ||
- Directory.Build.props | ||
- Directory.Build.targets | ||
tags-ignore: | ||
- release-* | ||
- preview-* | ||
|
||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- src/HealthChecks.Pulsar/** | ||
- test/HealthChecks.Pulsar.Tests/** | ||
- test/_SHARED/** | ||
- .github/workflows/healthchecks_pulsar_ci.yml | ||
- Directory.Build.props | ||
- Directory.Build.targets | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
services: | ||
pulsar: | ||
image: apachepulsar/pulsar:latest | ||
env: | ||
PULSAR_MEM: " -Xms1g -Xmx1g -XX:MaxDirectMemorySize=2g" | ||
ports: | ||
- 6650:6650 | ||
options: >- | ||
--entrypoint '/bin/bash -c "bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar standalone --no-functions-worker"' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
6.0.x | ||
7.0.x | ||
8.0.x | ||
- name: Restore | ||
run: | | ||
dotnet restore ./src/HealthChecks.Pulsar/HealthChecks.Pulsar.csproj && | ||
dotnet restore ./test/HealthChecks.Pulsar.Tests/HealthChecks.Pulsar.Tests.csproj | ||
- name: Check formatting | ||
run: | | ||
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Pulsar/HealthChecks.Pulsar.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && | ||
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Pulsar.Tests/HealthChecks.Pulsar.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
- name: Build | ||
run: | | ||
dotnet build --no-restore ./src/HealthChecks.Pulsar/HealthChecks.Pulsar.csproj && | ||
dotnet build --no-restore ./test/HealthChecks.Pulsar.Tests/HealthChecks.Pulsar.Tests.csproj | ||
- name: Test | ||
run: > | ||
dotnet test | ||
./test/HealthChecks.Pulsar.Tests/HealthChecks.Pulsar.Tests.csproj | ||
--no-restore | ||
--no-build | ||
--collect "XPlat Code Coverage" | ||
--results-directory .coverage | ||
-- | ||
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | ||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
flags: Pulsar | ||
directory: .coverage |
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
Oops, something went wrong.