Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…stics.HealthChecks into alirexaa/nats
  • Loading branch information
Alirexaa committed Dec 13, 2024
2 parents 7854598 + 4fe6a0a commit dda11db
Show file tree
Hide file tree
Showing 67 changed files with 2,025 additions and 691 deletions.
5 changes: 4 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ FTP_PORT=21
FTP_USER=bob
FTP_PASS=12345
RAVENDB_PORT=9030
SOLR_PORT=8983
SOLR_PORT=8983
CLICKHOUSE_USER=default
CLICKHOUSE_PASSWORD=Password12!
CLICKHOUSE_PORT=8123
4 changes: 4 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ flags:
carryforward: true
AzureStorage:
carryforward: true
ClickHouse:
carryforward: true
Consul:
carryforward: true
CosmosDb:
Expand Down Expand Up @@ -105,6 +107,8 @@ flags:
carryforward: true
SqlServer:
carryforward: true
SurrealDb:
carryforward: true
System:
carryforward: true
UI:
Expand Down
151 changes: 101 additions & 50 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,145 +5,196 @@ test:
all: ['!test/**/*.approved.txt']

github_actions:
- .github/**/*
- changed-files:
- any-glob-to-any-file: [.github/**/*]

code style:
- .editorconfig
- changed-files:
- any-glob-to-any-file: [.editorconfig]

docs:
- README.md
- doc/**/*
- changed-files:
- any-glob-to-any-file: [README.md, doc/**/*]

samples:
- samples/**/*
- changed-files:
- any-glob-to-any-file: [samples/**/*]

applicationstatus:
- src/HealthChecks.ApplicationStatus/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.ApplicationStatus/**/*]

arrangodb:
- src/HealthChecks.ArangoDb/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.ArangoDb/**/*]

aws:
- src/HealthChecks.Aws.*/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Aws.*/**/*]

azure:
- src/HealthChecks.Azure*/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Azure*/**/*]

clickhouse:
- src/HealthChecks.ClickHouse/**/*

consul:
- src/HealthChecks.Consul/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Consul/**/*]

cosmosdb:
- src/HealthChecks.CosmosDb/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.CosmosDb/**/*]

dapr:
- src/HealthChecks.Dapr/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Dapr/**/*]

documentdb:
- src/HealthChecks.DocumentDb/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.DocumentDb/**/*]

dynamodb:
- src/HealthChecks.DynamoDb/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.DynamoDb/**/*]

elasticsearch:
- src/HealthChecks.Elasticsearch/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Elasticsearch/**/*]

eventstore:
- src/HealthChecks.EventStore*/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.EventStore*/**/*]

cloudfirestore:
- src/HealthChecks.Gcp.CloudFirestore/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Gcp.CloudFirestore/**/*]

gremlin:
- src/HealthChecks.Gremlin/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Gremlin/**/*]

hangfire:
- src/HealthChecks.Hangfire/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Hangfire/**/*]

ibmmq:
src/HealthChecks.IbmMQ/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.IbmMQ/**/*]

influxdb:
src/HealthChecks.InfluxDB/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.InfluxDB/**/*]

kafka:
- src/HealthChecks.Kafka/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Kafka/**/*]

kubernetes:
- src/HealthChecks.Kubernetes/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Kubernetes/**/*]

milvus:
- src/HealthChecks.Milvus/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Milvus/**/*]

mongodb:
- src/HealthChecks.MongoDb/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.MongoDb/**/*]

mysql:
- src/HealthChecks.MySql/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.MySql/**/*]

nats:
- src/HealthChecks.Nats/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Nats/**/*]

network:
- src/HealthChecks.Network/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Network/**/*]

npgsql:
- src/HealthChecks.NpgSql/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.NpgSql/**/*]

openidconnect:
- src/HealthChecks.OpenIdConnectServer/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.OpenIdConnectServer/**/*]

oracle:
- src/HealthChecks.Oracle/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Oracle/**/*]

prometheus:
- src/HealthChecks.Prometheus.Metrics/**/*
- src/HealthChecks.Publisher.Prometheus/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Prometheus.Metrics/**/*, src/HealthChecks.Publisher.Prometheus/**/*]

applicationinsights:
- src/HealthChecks.Publisher.ApplicationInsights/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Publisher.ApplicationInsights/**/*]

cloudwatch:
- src/HealthChecks.Publisher.CloudWatch/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Publisher.CloudWatch/**/*]

datadog:
- src/HealthChecks.Publisher.Datadog/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Publisher.Datadog/**/*]

seq:
-src/HealthChecks.Publisher.Seq/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Publisher.Seq/**/*]

qdrant:
- src/HealthChecks.Qdrant/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Qdrant/**/*]

rabbitmq:
- src/HealthChecks.Rabbitmq/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Rabbitmq/**/*]

ravendb:
- src/HealthChecks.RavenDB/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.RavenDB/**/*]

redis:
- src/HealthChecks.Redis/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Redis/**/*]

sendgrid:
- src/HealthChecks.SendGrid/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.SendGrid/**/*]

signalr:
- src/HealthChecks.SignalR/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.SignalR/**/*]

solr:
- src/HealthChecks.Solr/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Solr/**/*]

sqlite:
- src/HealthChecks.Sqlite/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Sqlite/**/*]

sqlserver:
- src/HealthChecks.SqlServer/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.SqlServer/**/*]

surrealdb:
- src/HealthChecks.SurrealDb/**/*

system:
- src/HealthChecks.System/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.System/**/*]

UI:
- src/HealthChecks.UI/**/*
- src/HealthChecks.UI.*/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.UI/**/*, src/HealthChecks.UI.*/**/*]


uris:
- src/HealthChecks.Uris/**/*
- changed-files:
- any-glob-to-any-file: [src/HealthChecks.Uris/**/*]
16 changes: 16 additions & 0 deletions .github/workflows/healthchecks_clickhouse_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: HealthChecks ClickHouse DB CD

on:
push:
tags:
- release-clickhouse-*
- release-all-*

jobs:
build:
uses: ./.github/workflows/reusable_cd_workflow.yml
secrets: inherit
with:
BUILD_CONFIG: Release
PROJECT_PATH: ./src/HealthChecks.ClickHouse/HealthChecks.ClickHouse.csproj
PACKAGE_NAME: AspNetCore.HealthChecks.ClickHouse
17 changes: 17 additions & 0 deletions .github/workflows/healthchecks_clickhouse_cd_preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: HealthChecks ClickHouse DB Preview CD

on:
push:
tags:
- preview-clickhouse-*
- 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.ClickHouse/HealthChecks.ClickHouse.csproj
PACKAGE_NAME: AspNetCore.HealthChecks.ClickHouse
77 changes: 77 additions & 0 deletions .github/workflows/healthchecks_clickhouse_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: HealthChecks ClickHouse DB CI

on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- src/HealthChecks.ClickHouse/**
- test/HealthChecks.ClickHouse.Tests/**
- test/_SHARED/**
- .github/workflows/healthchecks_clickhouse_ci.yml
- Directory.Build.props
- Directory.Build.targets
- Directory.Packages.props
tags-ignore:
- release-*
- preview-*

pull_request:
branches: [ master ]
paths:
- src/HealthChecks.ClickHouse/**
- test/HealthChecks.ClickHouse.Tests/**
- test/_SHARED/**
- .github/workflows/healthchecks_clickhouse_ci.yml
- Directory.Build.props
- Directory.Build.targets
- Directory.Packages.props

jobs:
build:
runs-on: ubuntu-latest
services:
clickhouse:
image: clickhouse/clickhouse-server:24-alpine
ports:
- 8123:8123
env:
CLICKHOUSE_DB: default
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: "Password12!"
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "1"
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Restore
run: |
dotnet restore ./src/HealthChecks.ClickHouse/HealthChecks.ClickHouse.csproj &&
dotnet restore ./test/HealthChecks.ClickHouse.Tests/HealthChecks.ClickHouse.Tests.csproj
- name: Check formatting
run: |
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.ClickHouse/HealthChecks.ClickHouse.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.ClickHouse.Tests/HealthChecks.ClickHouse.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1)
- name: Build
run: |
dotnet build --no-restore ./src/HealthChecks.ClickHouse/HealthChecks.ClickHouse.csproj &&
dotnet build --no-restore ./test/HealthChecks.ClickHouse.Tests/HealthChecks.ClickHouse.Tests.csproj
- name: Test
run: >
dotnet test
./test/HealthChecks.ClickHouse.Tests/HealthChecks.ClickHouse.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: ClickHouse
directory: .coverage
Loading

0 comments on commit dda11db

Please sign in to comment.