Skip to content

Commit

Permalink
Merge branch 'master' into ClickHouse
Browse files Browse the repository at this point in the history
# Conflicts:
#	AspNetCore.Diagnostics.HealthChecks.sln
#	README.md
  • Loading branch information
sungam3r committed Jul 14, 2023
2 parents c4df989 + d70a7fb commit d898b79
Show file tree
Hide file tree
Showing 94 changed files with 2,563 additions and 1,361 deletions.
14 changes: 13 additions & 1 deletion .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,24 @@ flags:
carryforward: true
Aws.S3:
carryforward: true
Aws.SecretsManager:
carryforward: true
Aws.Sns:
carryforward: true
Aws.Sqs:
carryforward: true
AzureDigitalTwin:
Aws.SystemsManager:
carryforward: true
Azure.IoTHub:
carryforward: true
AzureApplicationInsights:
carryforward: true
AzureDigitalTwin:
carryforward: true
AzureKeyVault:
carryforward: true
AzureSearch:
carryforward: true
AzureServiceBus:
carryforward: true
AzureStorage:
Expand Down Expand Up @@ -51,6 +59,8 @@ flags:
carryforward: true
Kafka:
carryforward: true
Kubernetes:
carryforward: true
MongoDb:
carryforward: true
MySql:
Expand All @@ -61,6 +71,8 @@ flags:
carryforward: true
Npgsql:
carryforward: true
OpenIdConnectServer:
carryforward: true
Oracle:
carryforward: true
Prometheus.Metrics:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/healthchecks_azureapplicationinsights_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: HealthChecks AzureApplicationInsights CD

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

jobs:
build:
env:
BUILD_CONFIG: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: dotnet restore ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj
- name: Build
run: dotnet build --no-restore ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack --no-build ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj -c $BUILD_CONFIG -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.AzureApplicationInsights.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: HealthChecks AzureApplicationInsights Preview CD

on:
push:
tags:
- preview-azureapplicationinsights-*
- preview-all-*

jobs:
build:
env:
BUILD_CONFIG: Release
VERSION_SUFFIX: rc2.${{ github.run_number }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: dotnet restore ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj
- name: Build
run: dotnet build --no-restore ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack --no-build ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.AzureApplicationInsights.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
65 changes: 65 additions & 0 deletions .github/workflows/healthchecks_azureapplicationinsights_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: HealthChecks AzureApplicationInsights CI

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

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: |
dotnet restore ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj &&
dotnet restore ./test/HealthChecks.AzureApplicationInsights.Tests/HealthChecks.AzureApplicationInsights.Tests.csproj
- name: Check formatting
run: |
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.AzureApplicationInsights.Tests/HealthChecks.AzureApplicationInsights.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1)
- name: Build
run: |
dotnet build --no-restore ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj &&
dotnet build --no-restore ./test/HealthChecks.AzureApplicationInsights.Tests/HealthChecks.AzureApplicationInsights.Tests.csproj
- name: Test
run: >
dotnet test
./test/HealthChecks.AzureApplicationInsights.Tests/HealthChecks.AzureApplicationInsights.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: AzureApplicationInsights
directory: .coverage
2 changes: 1 addition & 1 deletion .github/workflows/healthchecks_influxdb_cd_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
tags:
- preview-influxdb-*
- preview-all-*

jobs:
build:
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/healthchecks_influxdb_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
dotnet build --no-restore ./src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj &&
dotnet build --no-restore ./test/HealthChecks.InfluxDB.Tests/HealthChecks.InfluxDB.Tests.csproj
- name: Setup InfluxDB
uses: maikebing/influxdb-action@v4
uses: maikebing/influxdb-action@v5
with:
influxdb_version: latest
influxdb_org: influxdata
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/healthchecks_ui_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
dotnet restore ./src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj &&
dotnet restore ./test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj &&
dotnet restore ./src/HealthChecks.UI.Data/HealthChecks.UI.Data.csproj &&
dotnet restore ./test/HealthChecks.UI.Data.Tests/HealthChecks.UI.Data.Tests.csproj &&
dotnet restore ./src/HealthChecks.UI.InMemory.Storage/HealthChecks.UI.InMemory.Storage.csproj &&
dotnet restore ./src/HealthChecks.UI.MySql.Storage/HealthChecks.UI.MySql.Storage.csproj &&
dotnet restore ./src/HealthChecks.UI.PostgreSQL.Storage/HealthChecks.UI.PostgreSQL.Storage.csproj &&
Expand All @@ -88,6 +89,7 @@ jobs:
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.Data/HealthChecks.UI.Data.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.UI.Data.Tests/HealthChecks.UI.Data.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.InMemory.Storage/HealthChecks.UI.InMemory.Storage.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.MySql.Storage/HealthChecks.UI.MySql.Storage.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.PostgreSQL.Storage/HealthChecks.UI.PostgreSQL.Storage.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
Expand All @@ -104,6 +106,7 @@ jobs:
dotnet build --no-restore ./src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj &&
dotnet build --no-restore ./test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj &&
dotnet build --no-restore ./src/HealthChecks.UI.Data/HealthChecks.UI.Data.csproj &&
dotnet build --no-restore ./test/HealthChecks.UI.Data.Tests/HealthChecks.UI.Data.Tests.csproj &&
dotnet build --no-restore ./src/HealthChecks.UI.InMemory.Storage/HealthChecks.UI.InMemory.Storage.csproj &&
dotnet build --no-restore ./src/HealthChecks.UI.MySql.Storage/HealthChecks.UI.MySql.Storage.csproj &&
dotnet build --no-restore ./src/HealthChecks.UI.PostgreSQL.Storage/HealthChecks.UI.PostgreSQL.Storage.csproj &&
Expand Down Expand Up @@ -137,6 +140,14 @@ jobs:
--results-directory .coverage
--
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
dotnet test
./test/HealthChecks.UI.Data.Tests/HealthChecks.UI.Data.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
Expand Down
Loading

0 comments on commit d898b79

Please sign in to comment.