From f16b8be5f8d0eda72d1b128fe53d9e235f473661 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Tue, 19 Sep 2023 17:25:54 +0200 Subject: [PATCH 01/22] update one project to net8.0 --- .github/workflows/reusable_cd_preview_workflow.yml | 1 + .github/workflows/reusable_cd_workflow.yml | 1 + .github/workflows/reusable_ci_workflow.yml | 1 + Directory.Build.props | 3 ++- build/versions.props | 2 +- .../HealthChecks.Azure.KeyVault.Secrets.csproj | 2 +- .../HealthChecks.Azure.KeyVault.Secrets.Tests.csproj | 2 +- 7 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/reusable_cd_preview_workflow.yml b/.github/workflows/reusable_cd_preview_workflow.yml index bc35a30b79..c452d56eea 100644 --- a/.github/workflows/reusable_cd_preview_workflow.yml +++ b/.github/workflows/reusable_cd_preview_workflow.yml @@ -27,6 +27,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: dotnet restore ${{inputs.PROJECT_PATH}} - name: Build diff --git a/.github/workflows/reusable_cd_workflow.yml b/.github/workflows/reusable_cd_workflow.yml index 59f96d4088..8be17a2afe 100644 --- a/.github/workflows/reusable_cd_workflow.yml +++ b/.github/workflows/reusable_cd_workflow.yml @@ -24,6 +24,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: dotnet restore ${{inputs.PROJECT_PATH}} - name: Build diff --git a/.github/workflows/reusable_ci_workflow.yml b/.github/workflows/reusable_ci_workflow.yml index 352e8ab3af..1658713c0e 100644 --- a/.github/workflows/reusable_ci_workflow.yml +++ b/.github/workflows/reusable_ci_workflow.yml @@ -24,6 +24,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ${{inputs.PROJECT_PATH}} && diff --git a/Directory.Build.props b/Directory.Build.props index d9959f8f0e..d1b6452944 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -37,9 +37,10 @@ - + + diff --git a/build/versions.props b/build/versions.props index 758ad003c2..932b7df431 100644 --- a/build/versions.props +++ b/build/versions.props @@ -12,7 +12,7 @@ 7.0.0 7.0.0 7.0.0 - 7.0.1 + 8.0.0 7.0.0 7.2.1 7.0.0 diff --git a/src/HealthChecks.Azure.KeyVault.Secrets/HealthChecks.Azure.KeyVault.Secrets.csproj b/src/HealthChecks.Azure.KeyVault.Secrets/HealthChecks.Azure.KeyVault.Secrets.csproj index d8aa0bdd46..f4c4a607c1 100644 --- a/src/HealthChecks.Azure.KeyVault.Secrets/HealthChecks.Azure.KeyVault.Secrets.csproj +++ b/src/HealthChecks.Azure.KeyVault.Secrets/HealthChecks.Azure.KeyVault.Secrets.csproj @@ -9,7 +9,7 @@ - + diff --git a/test/HealthChecks.Azure.KeyVault.Secrets.Tests/HealthChecks.Azure.KeyVault.Secrets.Tests.csproj b/test/HealthChecks.Azure.KeyVault.Secrets.Tests/HealthChecks.Azure.KeyVault.Secrets.Tests.csproj index dcafac26d9..8a2347a346 100644 --- a/test/HealthChecks.Azure.KeyVault.Secrets.Tests/HealthChecks.Azure.KeyVault.Secrets.Tests.csproj +++ b/test/HealthChecks.Azure.KeyVault.Secrets.Tests/HealthChecks.Azure.KeyVault.Secrets.Tests.csproj @@ -1,7 +1,7 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 From f073f9340aeaebd8217f1818bf497443db5c7a7f Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 08:34:22 +0200 Subject: [PATCH 02/22] update all System.* and Microsoft.Extensions* dependencies to 8.0 --- Directory.Build.props | 2 +- samples/HealthChecks.UIAndApi/HealthChecks.UIAndApi.csproj | 2 +- .../HealthChecks.UIAndApiCustomization.csproj | 2 +- .../HealthChecks.ApplicationStatus.csproj | 4 ++-- src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj | 2 +- src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj | 2 +- .../HealthChecks.Aws.SecretsManager.csproj | 2 +- src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj | 2 +- src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj | 2 +- .../HealthChecks.Aws.SystemsManager.csproj | 2 +- .../HealthChecks.Azure.Data.Tables.csproj | 2 +- .../HealthChecks.Azure.IoTHub.csproj | 2 +- .../HealthChecks.Azure.Messaging.EventHubs.csproj | 2 +- .../HealthChecks.Azure.Storage.Blobs.csproj | 2 +- .../HealthChecks.Azure.Storage.Files.Shares.csproj | 2 +- .../HealthChecks.Azure.Storage.Queues.csproj | 2 +- .../HealthChecks.AzureApplicationInsights.csproj | 4 ++-- .../HealthChecks.AzureDigitalTwin.csproj | 2 +- .../HealthChecks.AzureKeyVault.csproj | 2 +- .../HealthChecks.AzureSearch.csproj | 2 +- .../HealthChecks.AzureServiceBus.csproj | 2 +- src/HealthChecks.Consul/HealthChecks.Consul.csproj | 4 ++-- src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj | 2 +- src/HealthChecks.Dapr/HealthChecks.Dapr.csproj | 2 +- src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj | 2 +- src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj | 2 +- .../HealthChecks.Elasticsearch.csproj | 2 +- .../HealthChecks.EventStore.gRPC.csproj | 3 +-- src/HealthChecks.EventStore/HealthChecks.EventStore.csproj | 2 +- .../HealthChecks.Gcp.CloudFirestore.csproj | 2 +- src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj | 2 +- src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj | 2 +- src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj | 2 +- src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj | 2 +- src/HealthChecks.Kafka/HealthChecks.Kafka.csproj | 2 +- src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj | 2 +- src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj | 2 +- src/HealthChecks.MySql/HealthChecks.MySql.csproj | 2 +- src/HealthChecks.Nats/HealthChecks.Nats.csproj | 2 +- src/HealthChecks.Network/HealthChecks.Network.csproj | 2 +- src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj | 2 +- .../HealthChecks.OpenIdConnectServer.csproj | 6 +++--- src/HealthChecks.Oracle/HealthChecks.Oracle.csproj | 3 +-- .../HealthChecks.Publisher.ApplicationInsights.csproj | 2 +- .../HealthChecks.Publisher.CloudWatch.csproj | 2 +- .../HealthChecks.Publisher.Datadog.csproj | 2 +- .../HealthChecks.Publisher.Prometheus.csproj | 2 +- .../HealthChecks.Publisher.Seq.csproj | 6 +++--- src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj | 2 +- src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj | 2 +- src/HealthChecks.Redis/HealthChecks.Redis.csproj | 2 +- src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj | 4 ++-- src/HealthChecks.SignalR/HealthChecks.SignalR.csproj | 2 +- src/HealthChecks.Solr/HealthChecks.Solr.csproj | 2 +- src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj | 2 +- src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj | 4 ++-- src/HealthChecks.System/HealthChecks.System.csproj | 4 ++-- src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj | 2 +- src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj | 4 ++-- .../HealthChecks.UI.K8s.Operator.csproj | 6 +++--- src/HealthChecks.UI/HealthChecks.UI.csproj | 2 +- src/HealthChecks.Uris/HealthChecks.Uris.csproj | 4 ++-- 62 files changed, 76 insertions(+), 78 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index d1b6452944..912b71a4a8 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -41,7 +41,7 @@ - + diff --git a/samples/HealthChecks.UIAndApi/HealthChecks.UIAndApi.csproj b/samples/HealthChecks.UIAndApi/HealthChecks.UIAndApi.csproj index f9e6ba875a..001452f555 100644 --- a/samples/HealthChecks.UIAndApi/HealthChecks.UIAndApi.csproj +++ b/samples/HealthChecks.UIAndApi/HealthChecks.UIAndApi.csproj @@ -6,7 +6,7 @@ - + diff --git a/samples/HealthChecks.UIAndApiCustomization/HealthChecks.UIAndApiCustomization.csproj b/samples/HealthChecks.UIAndApiCustomization/HealthChecks.UIAndApiCustomization.csproj index 0094fd0ea6..bd749a58f1 100644 --- a/samples/HealthChecks.UIAndApiCustomization/HealthChecks.UIAndApiCustomization.csproj +++ b/samples/HealthChecks.UIAndApiCustomization/HealthChecks.UIAndApiCustomization.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj b/src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj index dec33348da..a1c96a37a8 100644 --- a/src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj +++ b/src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj b/src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj index 96fea6d2be..dc24ba4409 100644 --- a/src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj +++ b/src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj b/src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj index 1cb02c32e7..c5423cf8f0 100644 --- a/src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj +++ b/src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj b/src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj index d06ff995b6..adad1c1b64 100644 --- a/src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj +++ b/src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj b/src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj index fc2a60bcdb..8df828679e 100644 --- a/src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj +++ b/src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj b/src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj index a867d1e120..0901971951 100644 --- a/src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj +++ b/src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj b/src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj index 4f7a849d5e..5f544def33 100644 --- a/src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj +++ b/src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Azure.Data.Tables/HealthChecks.Azure.Data.Tables.csproj b/src/HealthChecks.Azure.Data.Tables/HealthChecks.Azure.Data.Tables.csproj index af2440ca2c..b281b7cc73 100644 --- a/src/HealthChecks.Azure.Data.Tables/HealthChecks.Azure.Data.Tables.csproj +++ b/src/HealthChecks.Azure.Data.Tables/HealthChecks.Azure.Data.Tables.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj b/src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj index 211dc0ce43..1274d2a3c8 100644 --- a/src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj +++ b/src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Azure.Messaging.EventHubs/HealthChecks.Azure.Messaging.EventHubs.csproj b/src/HealthChecks.Azure.Messaging.EventHubs/HealthChecks.Azure.Messaging.EventHubs.csproj index 3950bb925b..39680901c8 100644 --- a/src/HealthChecks.Azure.Messaging.EventHubs/HealthChecks.Azure.Messaging.EventHubs.csproj +++ b/src/HealthChecks.Azure.Messaging.EventHubs/HealthChecks.Azure.Messaging.EventHubs.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Azure.Storage.Blobs/HealthChecks.Azure.Storage.Blobs.csproj b/src/HealthChecks.Azure.Storage.Blobs/HealthChecks.Azure.Storage.Blobs.csproj index 97cf7cf611..4086f9526a 100644 --- a/src/HealthChecks.Azure.Storage.Blobs/HealthChecks.Azure.Storage.Blobs.csproj +++ b/src/HealthChecks.Azure.Storage.Blobs/HealthChecks.Azure.Storage.Blobs.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Azure.Storage.Files.Shares/HealthChecks.Azure.Storage.Files.Shares.csproj b/src/HealthChecks.Azure.Storage.Files.Shares/HealthChecks.Azure.Storage.Files.Shares.csproj index 9cab99a4be..7e4fc7cc7b 100644 --- a/src/HealthChecks.Azure.Storage.Files.Shares/HealthChecks.Azure.Storage.Files.Shares.csproj +++ b/src/HealthChecks.Azure.Storage.Files.Shares/HealthChecks.Azure.Storage.Files.Shares.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Azure.Storage.Queues/HealthChecks.Azure.Storage.Queues.csproj b/src/HealthChecks.Azure.Storage.Queues/HealthChecks.Azure.Storage.Queues.csproj index 7c94ee5ca6..4d03372c55 100644 --- a/src/HealthChecks.Azure.Storage.Queues/HealthChecks.Azure.Storage.Queues.csproj +++ b/src/HealthChecks.Azure.Storage.Queues/HealthChecks.Azure.Storage.Queues.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj b/src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj index 129d5b00ff..9e1720e547 100644 --- a/src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj +++ b/src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj b/src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj index c7120eb0c1..87aea0485b 100644 --- a/src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj +++ b/src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj @@ -11,6 +11,6 @@ - + diff --git a/src/HealthChecks.AzureKeyVault/HealthChecks.AzureKeyVault.csproj b/src/HealthChecks.AzureKeyVault/HealthChecks.AzureKeyVault.csproj index 2c89a93e04..fc340e1475 100644 --- a/src/HealthChecks.AzureKeyVault/HealthChecks.AzureKeyVault.csproj +++ b/src/HealthChecks.AzureKeyVault/HealthChecks.AzureKeyVault.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj b/src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj index fbe540fc55..a5beaf27fb 100644 --- a/src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj +++ b/src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj b/src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj index 91be97a155..401ec9a4e3 100644 --- a/src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj +++ b/src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Consul/HealthChecks.Consul.csproj b/src/HealthChecks.Consul/HealthChecks.Consul.csproj index f5380719bd..1cb1eac695 100644 --- a/src/HealthChecks.Consul/HealthChecks.Consul.csproj +++ b/src/HealthChecks.Consul/HealthChecks.Consul.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj b/src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj index db5005b25c..0fce4cc80e 100644 --- a/src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj +++ b/src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Dapr/HealthChecks.Dapr.csproj b/src/HealthChecks.Dapr/HealthChecks.Dapr.csproj index e02c517cd4..4aa871d45b 100644 --- a/src/HealthChecks.Dapr/HealthChecks.Dapr.csproj +++ b/src/HealthChecks.Dapr/HealthChecks.Dapr.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj b/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj index 3b02b8cdd7..9bc4543fd3 100644 --- a/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj +++ b/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj b/src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj index 4852b16704..ff694347b4 100644 --- a/src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj +++ b/src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj b/src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj index 9e4ac6af15..27f621d69d 100644 --- a/src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj +++ b/src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj b/src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj index 2cc7461871..ef153a4c54 100644 --- a/src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj +++ b/src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj @@ -9,8 +9,7 @@ - - + diff --git a/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj b/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj index 902c51330b..8d7c87d85f 100644 --- a/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj +++ b/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj b/src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj index 864628b0a9..1e3aff5483 100644 --- a/src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj +++ b/src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj b/src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj index 4b524b27e8..2f81e75d58 100644 --- a/src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj +++ b/src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj b/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj index 2cbe00a90f..bcdb03bed8 100644 --- a/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj +++ b/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj b/src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj index 066a54215a..b5a54424fd 100644 --- a/src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj +++ b/src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj b/src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj index 35c609f115..e4938feec6 100644 --- a/src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj +++ b/src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Kafka/HealthChecks.Kafka.csproj b/src/HealthChecks.Kafka/HealthChecks.Kafka.csproj index 6fe3cc26ea..5d91ed5d25 100644 --- a/src/HealthChecks.Kafka/HealthChecks.Kafka.csproj +++ b/src/HealthChecks.Kafka/HealthChecks.Kafka.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj b/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj index 6f89c5eed1..b53464d464 100644 --- a/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj +++ b/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj b/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj index 1ccfe6fd90..060dc070ce 100644 --- a/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj +++ b/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.MySql/HealthChecks.MySql.csproj b/src/HealthChecks.MySql/HealthChecks.MySql.csproj index b668dd5c0c..b254b4a7d8 100644 --- a/src/HealthChecks.MySql/HealthChecks.MySql.csproj +++ b/src/HealthChecks.MySql/HealthChecks.MySql.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Nats/HealthChecks.Nats.csproj b/src/HealthChecks.Nats/HealthChecks.Nats.csproj index d4158e6357..b72c47f8c5 100644 --- a/src/HealthChecks.Nats/HealthChecks.Nats.csproj +++ b/src/HealthChecks.Nats/HealthChecks.Nats.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/HealthChecks.Network/HealthChecks.Network.csproj b/src/HealthChecks.Network/HealthChecks.Network.csproj index bf24dbd0a9..cefb6caf41 100644 --- a/src/HealthChecks.Network/HealthChecks.Network.csproj +++ b/src/HealthChecks.Network/HealthChecks.Network.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj b/src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj index 062dfa184f..d1dfea848e 100644 --- a/src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj +++ b/src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj b/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj index 723ab655a8..019d0d74c5 100644 --- a/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj +++ b/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj @@ -9,9 +9,9 @@ - - - + + + diff --git a/src/HealthChecks.Oracle/HealthChecks.Oracle.csproj b/src/HealthChecks.Oracle/HealthChecks.Oracle.csproj index 23a382e336..382a1de56c 100644 --- a/src/HealthChecks.Oracle/HealthChecks.Oracle.csproj +++ b/src/HealthChecks.Oracle/HealthChecks.Oracle.csproj @@ -10,8 +10,7 @@ - - + diff --git a/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj b/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj index 6780fa6e37..6076eb28e7 100644 --- a/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj +++ b/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj b/src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj index ba5ff9349f..2968c26db6 100644 --- a/src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj +++ b/src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj b/src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj index 56cf21cadc..0fbfdbad9b 100644 --- a/src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj +++ b/src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj b/src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj index 730619a495..ba895bb4d2 100644 --- a/src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj +++ b/src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj b/src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj index 593a20de6b..e047ea827e 100644 --- a/src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj +++ b/src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj @@ -8,9 +8,9 @@ - - - + + + diff --git a/src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj b/src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj index c24a57d2ba..b290c43f77 100644 --- a/src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj +++ b/src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj b/src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj index 7aa7280e89..ae6569936e 100644 --- a/src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj +++ b/src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/HealthChecks.Redis/HealthChecks.Redis.csproj b/src/HealthChecks.Redis/HealthChecks.Redis.csproj index 88f2a5ac96..cef77797df 100644 --- a/src/HealthChecks.Redis/HealthChecks.Redis.csproj +++ b/src/HealthChecks.Redis/HealthChecks.Redis.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj b/src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj index 4bb1110267..728b0f2fe6 100644 --- a/src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj +++ b/src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/src/HealthChecks.SignalR/HealthChecks.SignalR.csproj b/src/HealthChecks.SignalR/HealthChecks.SignalR.csproj index ded106ecd3..2d4776d56e 100644 --- a/src/HealthChecks.SignalR/HealthChecks.SignalR.csproj +++ b/src/HealthChecks.SignalR/HealthChecks.SignalR.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Solr/HealthChecks.Solr.csproj b/src/HealthChecks.Solr/HealthChecks.Solr.csproj index e55061a77b..a6938416b8 100644 --- a/src/HealthChecks.Solr/HealthChecks.Solr.csproj +++ b/src/HealthChecks.Solr/HealthChecks.Solr.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj b/src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj index a9cf5e016b..b24ea03318 100644 --- a/src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj +++ b/src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj b/src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj index 079cfb1239..df7dda5b1e 100644 --- a/src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj +++ b/src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/src/HealthChecks.System/HealthChecks.System.csproj b/src/HealthChecks.System/HealthChecks.System.csproj index 1d6154a45a..05c5d98852 100644 --- a/src/HealthChecks.System/HealthChecks.System.csproj +++ b/src/HealthChecks.System/HealthChecks.System.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj b/src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj index a5b80de966..5eca4dbef0 100644 --- a/src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj +++ b/src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj b/src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj index 96e2adafe5..c0325881d0 100644 --- a/src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj +++ b/src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj b/src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj index e8a0ac8ce9..34e1f9ed8b 100644 --- a/src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj +++ b/src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj @@ -11,11 +11,11 @@ - - + + - + diff --git a/src/HealthChecks.UI/HealthChecks.UI.csproj b/src/HealthChecks.UI/HealthChecks.UI.csproj index 68ce63d59f..9b4c88479c 100644 --- a/src/HealthChecks.UI/HealthChecks.UI.csproj +++ b/src/HealthChecks.UI/HealthChecks.UI.csproj @@ -18,7 +18,7 @@ - + diff --git a/src/HealthChecks.Uris/HealthChecks.Uris.csproj b/src/HealthChecks.Uris/HealthChecks.Uris.csproj index 5ea5903a7b..8df07d847b 100644 --- a/src/HealthChecks.Uris/HealthChecks.Uris.csproj +++ b/src/HealthChecks.Uris/HealthChecks.Uris.csproj @@ -8,8 +8,8 @@ - - + + From c1b655fc62e60d7422b1982d957e440ca913e2f7 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 10:40:59 +0200 Subject: [PATCH 03/22] ConfigureHttpMessageHandlerBuilder has been obsoleted, use ConfigureAdditionalHttpMessageHandlers --- .../Extensions/ServiceCollectionExtensions.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/HealthChecks.UI/Extensions/ServiceCollectionExtensions.cs b/src/HealthChecks.UI/Extensions/ServiceCollectionExtensions.cs index e81393e3ce..bfd3bfa7c5 100644 --- a/src/HealthChecks.UI/Extensions/ServiceCollectionExtensions.cs +++ b/src/HealthChecks.UI/Extensions/ServiceCollectionExtensions.cs @@ -53,13 +53,13 @@ public static IServiceCollection AddApiEndpointHttpClient(this IServiceCollectio var settings = sp.GetRequiredService>(); return settings.Value.ApiEndpointHttpHandler?.Invoke(sp) ?? new HttpClientHandler(); }) - .ConfigureHttpMessageHandlerBuilder(builder => + .ConfigureAdditionalHttpMessageHandlers((handlerList, serviceProvider) => { - var settings = builder.Services.GetRequiredService>(); + var settings = serviceProvider.GetRequiredService>(); foreach (var handlerType in settings.Value.ApiEndpointDelegatingHandlerTypes.Values) { - builder.AdditionalHandlers.Add((DelegatingHandler)builder.Services.GetRequiredService(handlerType)); + handlerList.Add((DelegatingHandler)serviceProvider.GetRequiredService(handlerType)); } }) .Services; @@ -77,13 +77,13 @@ public static IServiceCollection AddWebhooksEndpointHttpClient(this IServiceColl var settings = sp.GetRequiredService>(); return settings.Value.WebHooksEndpointHttpHandler?.Invoke(sp) ?? new HttpClientHandler(); }) - .ConfigureHttpMessageHandlerBuilder(builder => + .ConfigureAdditionalHttpMessageHandlers((handlersList, serviceProvider) => { - var settings = builder.Services.GetRequiredService>(); + var settings = serviceProvider.GetRequiredService>(); foreach (var handlerType in settings.Value.WebHooksEndpointDelegatingHandlerTypes.Values) { - builder.AdditionalHandlers.Add((DelegatingHandler)builder.Services.GetRequiredService(handlerType)); + handlersList.Add((DelegatingHandler)serviceProvider.GetRequiredService(handlerType)); } }) .Services; From 3450c5dba7ff59ed2ad229b352f61ebe9aefb017 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 10:42:08 +0200 Subject: [PATCH 04/22] use full target framework moniker names --- src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj | 2 +- src/HealthChecks.Network/HealthChecks.Network.csproj | 2 +- .../HealthChecks.Publisher.Seq.csproj | 2 +- src/HealthChecks.Uris/HealthChecks.Uris.csproj | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj b/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj index b53464d464..600594d671 100644 --- a/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj +++ b/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj @@ -1,7 +1,7 @@ - net6;net7 + net6.0;net7.0 $(PackageTags);Kubernetes;k8s;Cluster HealthChecks.HealthChecks is the health check package for Kubernetes clusters. $(HealthCheckKubernetes) diff --git a/src/HealthChecks.Network/HealthChecks.Network.csproj b/src/HealthChecks.Network/HealthChecks.Network.csproj index cefb6caf41..ade4caad29 100644 --- a/src/HealthChecks.Network/HealthChecks.Network.csproj +++ b/src/HealthChecks.Network/HealthChecks.Network.csproj @@ -1,7 +1,7 @@ - netstandard2.0;net5;net6 + netstandard2.0;net5.0;net6.0 $(PackageTags);Network;Sftp;Ftp;Tcp;DNS HealthChecks.Network is the health check package for network services. $(HealthCheckNetwork) diff --git a/src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj b/src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj index e047ea827e..b9fb7e5932 100644 --- a/src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj +++ b/src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj @@ -1,7 +1,7 @@ - netstandard2.0;net7 + netstandard2.0;net7.0 $(PackageTags);Publisher;Seq HealthChecks.Publisher.Seq is the health check publisher for Seq. $(HealthCheckPublisherSeq) diff --git a/src/HealthChecks.Uris/HealthChecks.Uris.csproj b/src/HealthChecks.Uris/HealthChecks.Uris.csproj index 8df07d847b..a56051595a 100644 --- a/src/HealthChecks.Uris/HealthChecks.Uris.csproj +++ b/src/HealthChecks.Uris/HealthChecks.Uris.csproj @@ -1,7 +1,7 @@ - netstandard2.0;net5 + netstandard2.0;net5.0 $(PackageTags);Uri;Url;Uris;Urls HealthChecks.Uris is a simple health check package for Uri groups. $(HealthCheckUri) From d237012d9d797b266755c69afcfb19223ad7600a Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 11:22:26 +0200 Subject: [PATCH 05/22] add net8.0 to all test projects, move the setting to one file so it's easier to change in the future --- Directory.Build.props | 1 + .../HealthChecks.ApplicationStatus.Tests.csproj | 4 ---- .../HealthChecks.ArangoDb.Tests.csproj | 4 ---- .../HealthChecks.Aws.S3.Tests.csproj | 4 ---- .../HealthChecks.Aws.SecretsManager.Tests.csproj | 4 ---- .../HealthChecks.Aws.Sns.Tests.csproj | 4 ---- .../HealthChecks.Aws.Sqs.Tests.csproj | 4 ---- .../HealthChecks.Aws.SystemsManager.Tests.csproj | 4 ---- .../HealthChecks.Azure.Data.Tables.Tests.csproj | 4 ---- .../HealthChecks.Azure.IoTHub.Tests.csproj | 4 ---- .../HealthChecks.Azure.KeyVault.Secrets.Tests.csproj | 4 ---- .../HealthChecks.Azure.Messaging.EventHubs.Tests.csproj | 4 ---- .../HealthChecks.Azure.Storage.Blobs.Tests.csproj | 4 ---- .../HealthChecks.Azure.Storage.Files.Shares.Tests.csproj | 4 ---- .../HealthChecks.Azure.Storage.Queues.Tests.csproj | 4 ---- .../HealthChecks.AzureApplicationInsights.Tests.csproj | 4 ---- .../HealthChecks.AzureDigitalTwin.Tests.csproj | 4 ---- .../HealthChecks.AzureKeyVault.Tests.csproj | 4 ---- .../HealthChecks.AzureSearch.Tests.csproj | 4 ---- .../HealthChecks.AzureServiceBus.Tests.csproj | 4 ---- .../HealthChecks.Consul.Tests.csproj | 4 ---- .../HealthChecks.CosmosDb.Tests.csproj | 4 ---- test/HealthChecks.Dapr.Tests/HealthChecks.Dapr.Tests.csproj | 4 ---- .../HealthChecks.DocumentDb.Tests.csproj | 4 ---- .../HealthChecks.DynamoDb.Tests.csproj | 4 ---- .../HealthChecks.Elasticsearch.Tests.csproj | 4 ---- .../HealthChecks.EventStore.Tests.csproj | 4 ---- .../HealthChecks.EventStore.gRPC.Tests.csproj | 4 ---- .../HealthChecks.Gcp.CloudFirestore.Tests.csproj | 4 ---- .../HealthChecks.Gremlin.Tests.csproj | 4 ---- .../HealthChecks.Hangfire.Tests.csproj | 4 ---- test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj | 4 ---- .../HealthChecks.InfluxDB.Tests.csproj | 4 ---- test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj | 4 ---- .../HealthChecks.Kubernetes.Tests.csproj | 4 ---- .../HealthChecks.MongoDb.Tests.csproj | 4 ---- test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj | 4 ---- test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj | 4 ---- .../HealthChecks.Network.Tests.csproj | 4 ---- .../HealthChecks.Npgsql.Tests.csproj | 4 ---- .../HealthChecks.OpenIdConnectServer.Tests.csproj | 4 ---- .../HealthChecks.Oracle.Tests.csproj | 4 ---- .../HealthChecks.Prometheus.Metrics.Tests.csproj | 4 ---- .../HealthChecks.Publisher.ApplicationInsights.Tests.csproj | 4 ---- .../HealthChecks.Publisher.CloudWatch.Tests.csproj | 4 ---- .../HealthChecks.Publisher.Datadog.Tests.csproj | 4 ---- .../HealthChecks.Publisher.Prometheus.Tests.csproj | 4 ---- .../HealthChecks.Publisher.Seq.Tests.csproj | 4 ---- .../HealthChecks.RabbitMQ.Tests.csproj | 4 ---- .../HealthChecks.RavenDb.Tests.csproj | 4 ---- test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj | 4 ---- .../HealthChecks.SendGrid.Tests.csproj | 4 ---- .../HealthChecks.SignalR.Tests.csproj | 4 ---- test/HealthChecks.Solr.Tests/HealthChecks.Solr.Tests.csproj | 4 ---- .../HealthChecks.SqlServer.Tests.csproj | 4 ---- .../HealthChecks.Sqlite.Tests.csproj | 4 ---- .../HealthChecks.System.Tests.csproj | 4 ---- .../HealthChecks.UI.Client.Tests.csproj | 1 + .../HealthChecks.UI.Core.Tests.csproj | 4 ---- .../HealthChecks.UI.Data.Tests.csproj | 4 ---- test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj | 1 + test/HealthChecks.Uris.Tests/HealthChecks.Uris.Tests.csproj | 4 ---- 62 files changed, 3 insertions(+), 236 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 912b71a4a8..b0a60075d5 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -28,6 +28,7 @@ + net6.0;net7.0;net8.0 $(NoWarn);IDE1006 $(WarningsNotAsErrors);IDE0053;IDE0060 diff --git a/test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj b/test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj index 6c2e8cfdd7..9d66aa1d87 100644 --- a/test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj +++ b/test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj b/test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj index fa1d848ae5..4364febf29 100644 --- a/test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj +++ b/test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj b/test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj index 6aa83da4d4..bc449444d0 100644 --- a/test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj +++ b/test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Aws.SecretsManager.Tests/HealthChecks.Aws.SecretsManager.Tests.csproj b/test/HealthChecks.Aws.SecretsManager.Tests/HealthChecks.Aws.SecretsManager.Tests.csproj index e1d3d9bbff..bb5d0c0843 100644 --- a/test/HealthChecks.Aws.SecretsManager.Tests/HealthChecks.Aws.SecretsManager.Tests.csproj +++ b/test/HealthChecks.Aws.SecretsManager.Tests/HealthChecks.Aws.SecretsManager.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Aws.Sns.Tests/HealthChecks.Aws.Sns.Tests.csproj b/test/HealthChecks.Aws.Sns.Tests/HealthChecks.Aws.Sns.Tests.csproj index 9375214075..3f66b2f33d 100644 --- a/test/HealthChecks.Aws.Sns.Tests/HealthChecks.Aws.Sns.Tests.csproj +++ b/test/HealthChecks.Aws.Sns.Tests/HealthChecks.Aws.Sns.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Aws.Sqs.Tests/HealthChecks.Aws.Sqs.Tests.csproj b/test/HealthChecks.Aws.Sqs.Tests/HealthChecks.Aws.Sqs.Tests.csproj index abe3b3775f..92e6e96ddd 100644 --- a/test/HealthChecks.Aws.Sqs.Tests/HealthChecks.Aws.Sqs.Tests.csproj +++ b/test/HealthChecks.Aws.Sqs.Tests/HealthChecks.Aws.Sqs.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Aws.SystemsManager.Tests/HealthChecks.Aws.SystemsManager.Tests.csproj b/test/HealthChecks.Aws.SystemsManager.Tests/HealthChecks.Aws.SystemsManager.Tests.csproj index 0b5a73a45e..2c3a405469 100644 --- a/test/HealthChecks.Aws.SystemsManager.Tests/HealthChecks.Aws.SystemsManager.Tests.csproj +++ b/test/HealthChecks.Aws.SystemsManager.Tests/HealthChecks.Aws.SystemsManager.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Azure.Data.Tables.Tests/HealthChecks.Azure.Data.Tables.Tests.csproj b/test/HealthChecks.Azure.Data.Tables.Tests/HealthChecks.Azure.Data.Tables.Tests.csproj index da1991f7f3..9c064f3b7e 100644 --- a/test/HealthChecks.Azure.Data.Tables.Tests/HealthChecks.Azure.Data.Tables.Tests.csproj +++ b/test/HealthChecks.Azure.Data.Tables.Tests/HealthChecks.Azure.Data.Tables.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Azure.IoTHub.Tests/HealthChecks.Azure.IoTHub.Tests.csproj b/test/HealthChecks.Azure.IoTHub.Tests/HealthChecks.Azure.IoTHub.Tests.csproj index 14cfb31fb2..69836530cc 100644 --- a/test/HealthChecks.Azure.IoTHub.Tests/HealthChecks.Azure.IoTHub.Tests.csproj +++ b/test/HealthChecks.Azure.IoTHub.Tests/HealthChecks.Azure.IoTHub.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Azure.KeyVault.Secrets.Tests/HealthChecks.Azure.KeyVault.Secrets.Tests.csproj b/test/HealthChecks.Azure.KeyVault.Secrets.Tests/HealthChecks.Azure.KeyVault.Secrets.Tests.csproj index 8a2347a346..9d7c788944 100644 --- a/test/HealthChecks.Azure.KeyVault.Secrets.Tests/HealthChecks.Azure.KeyVault.Secrets.Tests.csproj +++ b/test/HealthChecks.Azure.KeyVault.Secrets.Tests/HealthChecks.Azure.KeyVault.Secrets.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0;net8.0 - - diff --git a/test/HealthChecks.Azure.Messaging.EventHubs.Tests/HealthChecks.Azure.Messaging.EventHubs.Tests.csproj b/test/HealthChecks.Azure.Messaging.EventHubs.Tests/HealthChecks.Azure.Messaging.EventHubs.Tests.csproj index c9ea759210..ffe9f4b034 100644 --- a/test/HealthChecks.Azure.Messaging.EventHubs.Tests/HealthChecks.Azure.Messaging.EventHubs.Tests.csproj +++ b/test/HealthChecks.Azure.Messaging.EventHubs.Tests/HealthChecks.Azure.Messaging.EventHubs.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Azure.Storage.Blobs.Tests/HealthChecks.Azure.Storage.Blobs.Tests.csproj b/test/HealthChecks.Azure.Storage.Blobs.Tests/HealthChecks.Azure.Storage.Blobs.Tests.csproj index b4fdb495ef..53dc133c88 100644 --- a/test/HealthChecks.Azure.Storage.Blobs.Tests/HealthChecks.Azure.Storage.Blobs.Tests.csproj +++ b/test/HealthChecks.Azure.Storage.Blobs.Tests/HealthChecks.Azure.Storage.Blobs.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Azure.Storage.Files.Shares.Tests/HealthChecks.Azure.Storage.Files.Shares.Tests.csproj b/test/HealthChecks.Azure.Storage.Files.Shares.Tests/HealthChecks.Azure.Storage.Files.Shares.Tests.csproj index 3384e6ef71..f876acef7b 100644 --- a/test/HealthChecks.Azure.Storage.Files.Shares.Tests/HealthChecks.Azure.Storage.Files.Shares.Tests.csproj +++ b/test/HealthChecks.Azure.Storage.Files.Shares.Tests/HealthChecks.Azure.Storage.Files.Shares.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Azure.Storage.Queues.Tests/HealthChecks.Azure.Storage.Queues.Tests.csproj b/test/HealthChecks.Azure.Storage.Queues.Tests/HealthChecks.Azure.Storage.Queues.Tests.csproj index 37172fa5c2..158fd13339 100644 --- a/test/HealthChecks.Azure.Storage.Queues.Tests/HealthChecks.Azure.Storage.Queues.Tests.csproj +++ b/test/HealthChecks.Azure.Storage.Queues.Tests/HealthChecks.Azure.Storage.Queues.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.AzureApplicationInsights.Tests/HealthChecks.AzureApplicationInsights.Tests.csproj b/test/HealthChecks.AzureApplicationInsights.Tests/HealthChecks.AzureApplicationInsights.Tests.csproj index 0aab3f976f..b3b0912956 100644 --- a/test/HealthChecks.AzureApplicationInsights.Tests/HealthChecks.AzureApplicationInsights.Tests.csproj +++ b/test/HealthChecks.AzureApplicationInsights.Tests/HealthChecks.AzureApplicationInsights.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.AzureDigitalTwin.Tests/HealthChecks.AzureDigitalTwin.Tests.csproj b/test/HealthChecks.AzureDigitalTwin.Tests/HealthChecks.AzureDigitalTwin.Tests.csproj index 2d8e4f0473..f680a1015e 100644 --- a/test/HealthChecks.AzureDigitalTwin.Tests/HealthChecks.AzureDigitalTwin.Tests.csproj +++ b/test/HealthChecks.AzureDigitalTwin.Tests/HealthChecks.AzureDigitalTwin.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.AzureKeyVault.Tests/HealthChecks.AzureKeyVault.Tests.csproj b/test/HealthChecks.AzureKeyVault.Tests/HealthChecks.AzureKeyVault.Tests.csproj index 223aba6abf..531e9c1650 100644 --- a/test/HealthChecks.AzureKeyVault.Tests/HealthChecks.AzureKeyVault.Tests.csproj +++ b/test/HealthChecks.AzureKeyVault.Tests/HealthChecks.AzureKeyVault.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.AzureSearch.Tests/HealthChecks.AzureSearch.Tests.csproj b/test/HealthChecks.AzureSearch.Tests/HealthChecks.AzureSearch.Tests.csproj index c965199d47..fdca60ee4e 100644 --- a/test/HealthChecks.AzureSearch.Tests/HealthChecks.AzureSearch.Tests.csproj +++ b/test/HealthChecks.AzureSearch.Tests/HealthChecks.AzureSearch.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.AzureServiceBus.Tests/HealthChecks.AzureServiceBus.Tests.csproj b/test/HealthChecks.AzureServiceBus.Tests/HealthChecks.AzureServiceBus.Tests.csproj index 2f24db41c4..3dbe8575c3 100644 --- a/test/HealthChecks.AzureServiceBus.Tests/HealthChecks.AzureServiceBus.Tests.csproj +++ b/test/HealthChecks.AzureServiceBus.Tests/HealthChecks.AzureServiceBus.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj b/test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj index d9f4c6078d..fa346d7185 100644 --- a/test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj +++ b/test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.CosmosDb.Tests/HealthChecks.CosmosDb.Tests.csproj b/test/HealthChecks.CosmosDb.Tests/HealthChecks.CosmosDb.Tests.csproj index fd3a8e20bb..8642457763 100644 --- a/test/HealthChecks.CosmosDb.Tests/HealthChecks.CosmosDb.Tests.csproj +++ b/test/HealthChecks.CosmosDb.Tests/HealthChecks.CosmosDb.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Dapr.Tests/HealthChecks.Dapr.Tests.csproj b/test/HealthChecks.Dapr.Tests/HealthChecks.Dapr.Tests.csproj index ae70769a6a..6b12fe74ff 100644 --- a/test/HealthChecks.Dapr.Tests/HealthChecks.Dapr.Tests.csproj +++ b/test/HealthChecks.Dapr.Tests/HealthChecks.Dapr.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.DocumentDb.Tests/HealthChecks.DocumentDb.Tests.csproj b/test/HealthChecks.DocumentDb.Tests/HealthChecks.DocumentDb.Tests.csproj index 3f24021298..2fb69357da 100644 --- a/test/HealthChecks.DocumentDb.Tests/HealthChecks.DocumentDb.Tests.csproj +++ b/test/HealthChecks.DocumentDb.Tests/HealthChecks.DocumentDb.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.DynamoDb.Tests/HealthChecks.DynamoDb.Tests.csproj b/test/HealthChecks.DynamoDb.Tests/HealthChecks.DynamoDb.Tests.csproj index 7cff706b1c..4a08335013 100644 --- a/test/HealthChecks.DynamoDb.Tests/HealthChecks.DynamoDb.Tests.csproj +++ b/test/HealthChecks.DynamoDb.Tests/HealthChecks.DynamoDb.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj b/test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj index deff442675..16cc14cb85 100644 --- a/test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj +++ b/test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj b/test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj index f656aab22d..d155db1da3 100644 --- a/test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj +++ b/test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj b/test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj index b4717dde6d..7f3f6f2307 100644 --- a/test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj +++ b/test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Gcp.CloudFirestore.Tests/HealthChecks.Gcp.CloudFirestore.Tests.csproj b/test/HealthChecks.Gcp.CloudFirestore.Tests/HealthChecks.Gcp.CloudFirestore.Tests.csproj index 1278862779..3503aba1e3 100644 --- a/test/HealthChecks.Gcp.CloudFirestore.Tests/HealthChecks.Gcp.CloudFirestore.Tests.csproj +++ b/test/HealthChecks.Gcp.CloudFirestore.Tests/HealthChecks.Gcp.CloudFirestore.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj b/test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj index 7f8c2c11f0..c31e6741f5 100644 --- a/test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj +++ b/test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Hangfire.Tests/HealthChecks.Hangfire.Tests.csproj b/test/HealthChecks.Hangfire.Tests/HealthChecks.Hangfire.Tests.csproj index a361ff325d..69257c4ace 100644 --- a/test/HealthChecks.Hangfire.Tests/HealthChecks.Hangfire.Tests.csproj +++ b/test/HealthChecks.Hangfire.Tests/HealthChecks.Hangfire.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj b/test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj index 04a8e48c27..ad6ffc1225 100644 --- a/test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj +++ b/test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.InfluxDB.Tests/HealthChecks.InfluxDB.Tests.csproj b/test/HealthChecks.InfluxDB.Tests/HealthChecks.InfluxDB.Tests.csproj index 6b120bb009..3325da8bcb 100644 --- a/test/HealthChecks.InfluxDB.Tests/HealthChecks.InfluxDB.Tests.csproj +++ b/test/HealthChecks.InfluxDB.Tests/HealthChecks.InfluxDB.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj b/test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj index 5b6d2f71ae..0a2fcb075f 100644 --- a/test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj +++ b/test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Kubernetes.Tests/HealthChecks.Kubernetes.Tests.csproj b/test/HealthChecks.Kubernetes.Tests/HealthChecks.Kubernetes.Tests.csproj index 1a0b7653b7..4ccf5c97f2 100644 --- a/test/HealthChecks.Kubernetes.Tests/HealthChecks.Kubernetes.Tests.csproj +++ b/test/HealthChecks.Kubernetes.Tests/HealthChecks.Kubernetes.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj b/test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj index 642f247f77..c7bf48044a 100644 --- a/test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj +++ b/test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj b/test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj index 26e587af5f..5bd9b8276d 100644 --- a/test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj +++ b/test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj b/test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj index ff88e05506..02fb71da06 100644 --- a/test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj +++ b/test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Network.Tests/HealthChecks.Network.Tests.csproj b/test/HealthChecks.Network.Tests/HealthChecks.Network.Tests.csproj index a9cbd4091a..f4c63a342a 100644 --- a/test/HealthChecks.Network.Tests/HealthChecks.Network.Tests.csproj +++ b/test/HealthChecks.Network.Tests/HealthChecks.Network.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj b/test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj index 0e6f139368..2542a96526 100644 --- a/test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj +++ b/test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj b/test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj index 7bd01952dd..32e4c9dee0 100644 --- a/test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj +++ b/test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj b/test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj index 74f13463a4..936df2da3a 100644 --- a/test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj +++ b/test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Prometheus.Metrics.Tests/HealthChecks.Prometheus.Metrics.Tests.csproj b/test/HealthChecks.Prometheus.Metrics.Tests/HealthChecks.Prometheus.Metrics.Tests.csproj index 24d8fd12fe..13084f1d0a 100644 --- a/test/HealthChecks.Prometheus.Metrics.Tests/HealthChecks.Prometheus.Metrics.Tests.csproj +++ b/test/HealthChecks.Prometheus.Metrics.Tests/HealthChecks.Prometheus.Metrics.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Publisher.ApplicationInsights.Tests/HealthChecks.Publisher.ApplicationInsights.Tests.csproj b/test/HealthChecks.Publisher.ApplicationInsights.Tests/HealthChecks.Publisher.ApplicationInsights.Tests.csproj index a38db42768..6b6624cea1 100644 --- a/test/HealthChecks.Publisher.ApplicationInsights.Tests/HealthChecks.Publisher.ApplicationInsights.Tests.csproj +++ b/test/HealthChecks.Publisher.ApplicationInsights.Tests/HealthChecks.Publisher.ApplicationInsights.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj b/test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj index 0868405ef7..7d257550cb 100644 --- a/test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj +++ b/test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Publisher.Datadog.Tests/HealthChecks.Publisher.Datadog.Tests.csproj b/test/HealthChecks.Publisher.Datadog.Tests/HealthChecks.Publisher.Datadog.Tests.csproj index 99ec33301d..e83f7e8ba2 100644 --- a/test/HealthChecks.Publisher.Datadog.Tests/HealthChecks.Publisher.Datadog.Tests.csproj +++ b/test/HealthChecks.Publisher.Datadog.Tests/HealthChecks.Publisher.Datadog.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Publisher.Prometheus.Tests/HealthChecks.Publisher.Prometheus.Tests.csproj b/test/HealthChecks.Publisher.Prometheus.Tests/HealthChecks.Publisher.Prometheus.Tests.csproj index 4ff0a7d1cf..f15f09990f 100644 --- a/test/HealthChecks.Publisher.Prometheus.Tests/HealthChecks.Publisher.Prometheus.Tests.csproj +++ b/test/HealthChecks.Publisher.Prometheus.Tests/HealthChecks.Publisher.Prometheus.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Publisher.Seq.Tests/HealthChecks.Publisher.Seq.Tests.csproj b/test/HealthChecks.Publisher.Seq.Tests/HealthChecks.Publisher.Seq.Tests.csproj index 223fd38cca..e766617048 100644 --- a/test/HealthChecks.Publisher.Seq.Tests/HealthChecks.Publisher.Seq.Tests.csproj +++ b/test/HealthChecks.Publisher.Seq.Tests/HealthChecks.Publisher.Seq.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj b/test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj index 6c07b80085..c2ed3dfd92 100644 --- a/test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj +++ b/test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj b/test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj index 5e85fcd0fc..ea8d9675bf 100644 --- a/test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj +++ b/test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj b/test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj index d300806862..ed1690452b 100644 --- a/test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj +++ b/test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.SendGrid.Tests/HealthChecks.SendGrid.Tests.csproj b/test/HealthChecks.SendGrid.Tests/HealthChecks.SendGrid.Tests.csproj index af0010aff2..396b7624b7 100644 --- a/test/HealthChecks.SendGrid.Tests/HealthChecks.SendGrid.Tests.csproj +++ b/test/HealthChecks.SendGrid.Tests/HealthChecks.SendGrid.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.SignalR.Tests/HealthChecks.SignalR.Tests.csproj b/test/HealthChecks.SignalR.Tests/HealthChecks.SignalR.Tests.csproj index f2609659ac..85db327fa4 100644 --- a/test/HealthChecks.SignalR.Tests/HealthChecks.SignalR.Tests.csproj +++ b/test/HealthChecks.SignalR.Tests/HealthChecks.SignalR.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Solr.Tests/HealthChecks.Solr.Tests.csproj b/test/HealthChecks.Solr.Tests/HealthChecks.Solr.Tests.csproj index 49cb3b7694..90f4daa6d7 100644 --- a/test/HealthChecks.Solr.Tests/HealthChecks.Solr.Tests.csproj +++ b/test/HealthChecks.Solr.Tests/HealthChecks.Solr.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj b/test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj index 86d688ad28..34af181f2b 100644 --- a/test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj +++ b/test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.Sqlite.Tests/HealthChecks.Sqlite.Tests.csproj b/test/HealthChecks.Sqlite.Tests/HealthChecks.Sqlite.Tests.csproj index 69a96412c8..a8abb71b1c 100644 --- a/test/HealthChecks.Sqlite.Tests/HealthChecks.Sqlite.Tests.csproj +++ b/test/HealthChecks.Sqlite.Tests/HealthChecks.Sqlite.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.System.Tests/HealthChecks.System.Tests.csproj b/test/HealthChecks.System.Tests/HealthChecks.System.Tests.csproj index abcb3c805f..a0d3ee49a1 100644 --- a/test/HealthChecks.System.Tests/HealthChecks.System.Tests.csproj +++ b/test/HealthChecks.System.Tests/HealthChecks.System.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.UI.Client.Tests/HealthChecks.UI.Client.Tests.csproj b/test/HealthChecks.UI.Client.Tests/HealthChecks.UI.Client.Tests.csproj index 12bba725f3..6777a8b025 100644 --- a/test/HealthChecks.UI.Client.Tests/HealthChecks.UI.Client.Tests.csproj +++ b/test/HealthChecks.UI.Client.Tests/HealthChecks.UI.Client.Tests.csproj @@ -1,6 +1,7 @@ + net6.0;net7.0 diff --git a/test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj b/test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj index 62830633c1..d21dc68b21 100644 --- a/test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj +++ b/test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.UI.Data.Tests/HealthChecks.UI.Data.Tests.csproj b/test/HealthChecks.UI.Data.Tests/HealthChecks.UI.Data.Tests.csproj index b4841b27ba..61b80d02a3 100644 --- a/test/HealthChecks.UI.Data.Tests/HealthChecks.UI.Data.Tests.csproj +++ b/test/HealthChecks.UI.Data.Tests/HealthChecks.UI.Data.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - diff --git a/test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj b/test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj index 89adb63cd9..5dead26e82 100644 --- a/test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj +++ b/test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj @@ -1,6 +1,7 @@ + net6.0;net7.0 diff --git a/test/HealthChecks.Uris.Tests/HealthChecks.Uris.Tests.csproj b/test/HealthChecks.Uris.Tests/HealthChecks.Uris.Tests.csproj index 47e342d3dd..60f5e9d389 100644 --- a/test/HealthChecks.Uris.Tests/HealthChecks.Uris.Tests.csproj +++ b/test/HealthChecks.Uris.Tests/HealthChecks.Uris.Tests.csproj @@ -1,9 +1,5 @@ - - net6.0;net7.0 - - From 11bb02020cb115649194eddccc07c5c06fb1fd4a Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 11:55:36 +0200 Subject: [PATCH 06/22] add net8.0 to all projects that required it to fix the build, replace net5.0 (out of support) with net6.0 (oldest supported) --- src/HealthChecks.Network/HealthChecks.Network.csproj | 2 +- src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj | 2 +- src/HealthChecks.Uris/HealthChecks.Uris.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HealthChecks.Network/HealthChecks.Network.csproj b/src/HealthChecks.Network/HealthChecks.Network.csproj index ade4caad29..938c47d8ff 100644 --- a/src/HealthChecks.Network/HealthChecks.Network.csproj +++ b/src/HealthChecks.Network/HealthChecks.Network.csproj @@ -1,7 +1,7 @@ - netstandard2.0;net5.0;net6.0 + netstandard2.0;net6.0;net7.0;net8.0 $(PackageTags);Network;Sftp;Ftp;Tcp;DNS HealthChecks.Network is the health check package for network services. $(HealthCheckNetwork) diff --git a/src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj b/src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj index 5eca4dbef0..f4ab8d194f 100644 --- a/src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj +++ b/src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj @@ -1,7 +1,7 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 $(PackageTags);UI;Client HealthChecks.UI.Client contains some mandatory abstractions to work with HealthChecks.UI. $(HealthCheckUIClient) diff --git a/src/HealthChecks.Uris/HealthChecks.Uris.csproj b/src/HealthChecks.Uris/HealthChecks.Uris.csproj index a56051595a..34fedc2a62 100644 --- a/src/HealthChecks.Uris/HealthChecks.Uris.csproj +++ b/src/HealthChecks.Uris/HealthChecks.Uris.csproj @@ -1,7 +1,7 @@ - netstandard2.0;net5.0 + netstandard2.0;net6.0 $(PackageTags);Uri;Url;Uris;Urls HealthChecks.Uris is a simple health check package for Uri groups. $(HealthCheckUri) From 3f871d1b7ff85d653e73981b36bc4bf63c3219f9 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 12:43:41 +0200 Subject: [PATCH 07/22] update all healthchecks_*_cd.yml files: use reusable worklflow that targets net8.0 --- .../healthchecks_applicationstatus_cd.yml | 23 ++++-------------- .../workflows/healthchecks_arangodb_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_aws_s3_cd.yml | 23 ++++-------------- .../healthchecks_aws_secretsmanager_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_aws_sns_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_aws_sqs_cd.yml | 23 ++++-------------- .../healthchecks_aws_systemsmanager_cd.yml | 23 ++++-------------- .../healthchecks_azure_digitaltwin_cd.yml | 23 ++++-------------- ...althchecks_azureapplicationinsights_cd.yml | 23 ++++-------------- .../workflows/healthchecks_azuresearch_cd.yml | 23 ++++-------------- .../healthchecks_azureservicebus_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_consul_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_dapr_cd.yml | 23 ++++-------------- .../workflows/healthchecks_documentdb_cd.yml | 23 ++++-------------- .../workflows/healthchecks_dynamodb_cd.yml | 23 ++++-------------- .../healthchecks_elasticsearch_cd.yml | 23 ++++-------------- .../workflows/healthchecks_eventstore_cd.yml | 23 ++++-------------- .../healthchecks_eventstore_grpc_cd.yml | 23 ++++-------------- .../healthchecks_gcp_cloudfirestore_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_gremlin_cd.yml | 23 ++++-------------- .../workflows/healthchecks_hangfire_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_ibmmq_cd.yml | 23 ++++-------------- .../workflows/healthchecks_influxdb_cd.yml | 24 ++++--------------- .github/workflows/healthchecks_kafka_cd.yml | 23 ++++-------------- .../workflows/healthchecks_kubernetes_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_mongodb_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_mysql_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_nats_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_network_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_npgsql_cd.yml | 23 ++++-------------- .../healthchecks_openidconnectserver_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_oracle_cd.yml | 23 ++++-------------- .../healthchecks_prometheus_metrics_cd.yml | 23 ++++-------------- ...hecks_publisher_applicationinsights_cd.yml | 23 ++++-------------- .../healthchecks_publisher_cloudwatch_cd.yml | 23 ++++-------------- .../healthchecks_publisher_datadog_cd.yml | 23 ++++-------------- .../healthchecks_publisher_prometheus_cd.yml | 23 ++++-------------- .../healthchecks_publisher_seq_cd.yml | 23 ++++-------------- .../workflows/healthchecks_rabbitmq_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_ravendb_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_redis_cd.yml | 23 ++++-------------- .../workflows/healthchecks_sendgrid_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_signalr_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_solr_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_sqlite_cd.yml | 23 ++++-------------- .../workflows/healthchecks_sqlserver_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_system_cd.yml | 23 ++++-------------- .github/workflows/healthchecks_ui_cd.yml | 1 + .github/workflows/healthchecks_uris_cd.yml | 23 ++++-------------- 49 files changed, 241 insertions(+), 865 deletions(-) diff --git a/.github/workflows/healthchecks_applicationstatus_cd.yml b/.github/workflows/healthchecks_applicationstatus_cd.yml index 3471ec7c5a..02456ddf8b 100644 --- a/.github/workflows/healthchecks_applicationstatus_cd.yml +++ b/.github/workflows/healthchecks_applicationstatus_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.ApplicationStatus/HealthChecks.ApplicationStatus.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.ApplicationStatus.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.ApplicationStatus diff --git a/.github/workflows/healthchecks_arangodb_cd.yml b/.github/workflows/healthchecks_arangodb_cd.yml index c230ddb869..301e2329c6 100644 --- a/.github/workflows/healthchecks_arangodb_cd.yml +++ b/.github/workflows/healthchecks_arangodb_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.ArangoDb/HealthChecks.ArangoDb.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.ArangoDb.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.ArangoDb diff --git a/.github/workflows/healthchecks_aws_s3_cd.yml b/.github/workflows/healthchecks_aws_s3_cd.yml index a7de36ad66..6a6d0b7e48 100644 --- a/.github/workflows/healthchecks_aws_s3_cd.yml +++ b/.github/workflows/healthchecks_aws_s3_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Aws.S3/HealthChecks.Aws.S3.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.S3.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Aws.S3 diff --git a/.github/workflows/healthchecks_aws_secretsmanager_cd.yml b/.github/workflows/healthchecks_aws_secretsmanager_cd.yml index 86724bf991..aff1280723 100644 --- a/.github/workflows/healthchecks_aws_secretsmanager_cd.yml +++ b/.github/workflows/healthchecks_aws_secretsmanager_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.SecretsManager.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Aws.SecretsManager diff --git a/.github/workflows/healthchecks_aws_sns_cd.yml b/.github/workflows/healthchecks_aws_sns_cd.yml index 2f8231880f..c1dcd5b15a 100644 --- a/.github/workflows/healthchecks_aws_sns_cd.yml +++ b/.github/workflows/healthchecks_aws_sns_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Aws.Sns/HealthChecks.Aws.Sns.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.Sns.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Aws.Sns diff --git a/.github/workflows/healthchecks_aws_sqs_cd.yml b/.github/workflows/healthchecks_aws_sqs_cd.yml index 0675af7d21..e1b9d4fd49 100644 --- a/.github/workflows/healthchecks_aws_sqs_cd.yml +++ b/.github/workflows/healthchecks_aws_sqs_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Aws.Sqs/HealthChecks.Aws.Sqs.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.Sqs.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Aws.Sqs diff --git a/.github/workflows/healthchecks_aws_systemsmanager_cd.yml b/.github/workflows/healthchecks_aws_systemsmanager_cd.yml index c018145c10..ca7ad7fb19 100644 --- a/.github/workflows/healthchecks_aws_systemsmanager_cd.yml +++ b/.github/workflows/healthchecks_aws_systemsmanager_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.SystemsManager.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Aws.SystemsManager diff --git a/.github/workflows/healthchecks_azure_digitaltwin_cd.yml b/.github/workflows/healthchecks_azure_digitaltwin_cd.yml index 191f743aac..086d123c6f 100644 --- a/.github/workflows/healthchecks_azure_digitaltwin_cd.yml +++ b/.github/workflows/healthchecks_azure_digitaltwin_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.AzureDigitalTwin.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.AzureDigitalTwin diff --git a/.github/workflows/healthchecks_azureapplicationinsights_cd.yml b/.github/workflows/healthchecks_azureapplicationinsights_cd.yml index b1e804fec4..c299973ca7 100644 --- a/.github/workflows/healthchecks_azureapplicationinsights_cd.yml +++ b/.github/workflows/healthchecks_azureapplicationinsights_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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 + PROJECT_PATH: ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.AzureApplicationInsights diff --git a/.github/workflows/healthchecks_azuresearch_cd.yml b/.github/workflows/healthchecks_azuresearch_cd.yml index 170a2c13e3..305d14be4e 100644 --- a/.github/workflows/healthchecks_azuresearch_cd.yml +++ b/.github/workflows/healthchecks_azuresearch_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.AzureSearch/HealthChecks.AzureSearch.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.AzureSearch.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.AzureSearch diff --git a/.github/workflows/healthchecks_azureservicebus_cd.yml b/.github/workflows/healthchecks_azureservicebus_cd.yml index e717901270..b2d9419446 100644 --- a/.github/workflows/healthchecks_azureservicebus_cd.yml +++ b/.github/workflows/healthchecks_azureservicebus_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.AzureServiceBus/HealthChecks.AzureServiceBus.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.AzureServiceBus.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.AzureServiceBus diff --git a/.github/workflows/healthchecks_consul_cd.yml b/.github/workflows/healthchecks_consul_cd.yml index 43f97336cf..22b83f5360 100644 --- a/.github/workflows/healthchecks_consul_cd.yml +++ b/.github/workflows/healthchecks_consul_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Consul/HealthChecks.Consul.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Consul/HealthChecks.Consul.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Consul/HealthChecks.Consul.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Consul.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Consul/HealthChecks.Consul.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Consul diff --git a/.github/workflows/healthchecks_dapr_cd.yml b/.github/workflows/healthchecks_dapr_cd.yml index 60805ab7a1..ecfb34870d 100644 --- a/.github/workflows/healthchecks_dapr_cd.yml +++ b/.github/workflows/healthchecks_dapr_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Dapr/HealthChecks.Dapr.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Dapr/HealthChecks.Dapr.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Dapr/HealthChecks.Dapr.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Dapr.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Dapr/HealthChecks.Dapr.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Dapr diff --git a/.github/workflows/healthchecks_documentdb_cd.yml b/.github/workflows/healthchecks_documentdb_cd.yml index 9e0177979b..1a23b48c5e 100644 --- a/.github/workflows/healthchecks_documentdb_cd.yml +++ b/.github/workflows/healthchecks_documentdb_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.DocumentDb/HealthChecks.DocumentDb.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.DocumentDb.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.DocumentDb diff --git a/.github/workflows/healthchecks_dynamodb_cd.yml b/.github/workflows/healthchecks_dynamodb_cd.yml index db44e3530c..5e547fce76 100644 --- a/.github/workflows/healthchecks_dynamodb_cd.yml +++ b/.github/workflows/healthchecks_dynamodb_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.DynamoDb/HealthChecks.DynamoDb.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.DynamoDb.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.DynamoDb diff --git a/.github/workflows/healthchecks_elasticsearch_cd.yml b/.github/workflows/healthchecks_elasticsearch_cd.yml index a7d65d0f79..c2c7b80cb7 100644 --- a/.github/workflows/healthchecks_elasticsearch_cd.yml +++ b/.github/workflows/healthchecks_elasticsearch_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Elasticsearch/HealthChecks.Elasticsearch.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Elasticsearch.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Elasticsearch diff --git a/.github/workflows/healthchecks_eventstore_cd.yml b/.github/workflows/healthchecks_eventstore_cd.yml index fe0e65a0e1..6b75d9e78c 100644 --- a/.github/workflows/healthchecks_eventstore_cd.yml +++ b/.github/workflows/healthchecks_eventstore_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.EventStore/HealthChecks.EventStore.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.EventStore.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.EventStore diff --git a/.github/workflows/healthchecks_eventstore_grpc_cd.yml b/.github/workflows/healthchecks_eventstore_grpc_cd.yml index 90115a8d8b..5f2c843498 100644 --- a/.github/workflows/healthchecks_eventstore_grpc_cd.yml +++ b/.github/workflows/healthchecks_eventstore_grpc_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.EventStore.gRPC.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.EventStore.gRPC diff --git a/.github/workflows/healthchecks_gcp_cloudfirestore_cd.yml b/.github/workflows/healthchecks_gcp_cloudfirestore_cd.yml index 3535395bc5..e01885d575 100644 --- a/.github/workflows/healthchecks_gcp_cloudfirestore_cd.yml +++ b/.github/workflows/healthchecks_gcp_cloudfirestore_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Gcp.CloudFirestore.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Gcp.CloudFirestore diff --git a/.github/workflows/healthchecks_gremlin_cd.yml b/.github/workflows/healthchecks_gremlin_cd.yml index 58c79fe634..bd4ef252d8 100644 --- a/.github/workflows/healthchecks_gremlin_cd.yml +++ b/.github/workflows/healthchecks_gremlin_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Gremlin/HealthChecks.Gremlin.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Gremlin.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Gremlin diff --git a/.github/workflows/healthchecks_hangfire_cd.yml b/.github/workflows/healthchecks_hangfire_cd.yml index d4a0120fca..e3c9a99382 100644 --- a/.github/workflows/healthchecks_hangfire_cd.yml +++ b/.github/workflows/healthchecks_hangfire_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Hangfire/HealthChecks.Hangfire.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Hangfire.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Hangfire diff --git a/.github/workflows/healthchecks_ibmmq_cd.yml b/.github/workflows/healthchecks_ibmmq_cd.yml index 731f91df00..cb172bdb9e 100644 --- a/.github/workflows/healthchecks_ibmmq_cd.yml +++ b/.github/workflows/healthchecks_ibmmq_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.IbmMQ/HealthChecks.IbmMQ.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.IbmMQ.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.IbmMQ diff --git a/.github/workflows/healthchecks_influxdb_cd.yml b/.github/workflows/healthchecks_influxdb_cd.yml index dd0b9ba24b..6d0afab1d0 100644 --- a/.github/workflows/healthchecks_influxdb_cd.yml +++ b/.github/workflows/healthchecks_influxdb_cd.yml @@ -8,23 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.InfluxDB/HealthChecks.InfluxDB.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.InfluxDB.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate - + PROJECT_PATH: ./src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.InfluxDB diff --git a/.github/workflows/healthchecks_kafka_cd.yml b/.github/workflows/healthchecks_kafka_cd.yml index 5a2eee26a0..4413d745ae 100644 --- a/.github/workflows/healthchecks_kafka_cd.yml +++ b/.github/workflows/healthchecks_kafka_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Kafka/HealthChecks.Kafka.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Kafka.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Kafka diff --git a/.github/workflows/healthchecks_kubernetes_cd.yml b/.github/workflows/healthchecks_kubernetes_cd.yml index 8839496e26..235fd2a364 100644 --- a/.github/workflows/healthchecks_kubernetes_cd.yml +++ b/.github/workflows/healthchecks_kubernetes_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Kubernetes/HealthChecks.Kubernetes.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Kubernetes.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Kubernetes diff --git a/.github/workflows/healthchecks_mongodb_cd.yml b/.github/workflows/healthchecks_mongodb_cd.yml index 4bea55f01d..ce92b5cdfc 100644 --- a/.github/workflows/healthchecks_mongodb_cd.yml +++ b/.github/workflows/healthchecks_mongodb_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.MongoDb/HealthChecks.MongoDb.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.MongoDb.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.MongoDb diff --git a/.github/workflows/healthchecks_mysql_cd.yml b/.github/workflows/healthchecks_mysql_cd.yml index 0274fcbcf6..a9270cea85 100644 --- a/.github/workflows/healthchecks_mysql_cd.yml +++ b/.github/workflows/healthchecks_mysql_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.MySql/HealthChecks.MySql.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.MySql/HealthChecks.MySql.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.MySql/HealthChecks.MySql.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.MySql.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.MySql/HealthChecks.MySql.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.MySql diff --git a/.github/workflows/healthchecks_nats_cd.yml b/.github/workflows/healthchecks_nats_cd.yml index bb24bec272..843e9c2180 100644 --- a/.github/workflows/healthchecks_nats_cd.yml +++ b/.github/workflows/healthchecks_nats_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Nats/HealthChecks.Nats.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Nats/HealthChecks.Nats.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Nats/HealthChecks.Nats.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Nats.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Nats/HealthChecks.Nats.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Nats diff --git a/.github/workflows/healthchecks_network_cd.yml b/.github/workflows/healthchecks_network_cd.yml index 62ff29db51..ca956a0aa5 100644 --- a/.github/workflows/healthchecks_network_cd.yml +++ b/.github/workflows/healthchecks_network_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Network/HealthChecks.Network.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Network/HealthChecks.Network.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Network/HealthChecks.Network.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Network.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Network/HealthChecks.Network.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Network diff --git a/.github/workflows/healthchecks_npgsql_cd.yml b/.github/workflows/healthchecks_npgsql_cd.yml index 2dbb8c1d9a..a020c42d30 100644 --- a/.github/workflows/healthchecks_npgsql_cd.yml +++ b/.github/workflows/healthchecks_npgsql_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.NpgSql/HealthChecks.NpgSql.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.NpgSql.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.NpgSql diff --git a/.github/workflows/healthchecks_openidconnectserver_cd.yml b/.github/workflows/healthchecks_openidconnectserver_cd.yml index 62f8c7dcac..72cd9d81a7 100644 --- a/.github/workflows/healthchecks_openidconnectserver_cd.yml +++ b/.github/workflows/healthchecks_openidconnectserver_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.OpenIdConnectServer.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.OpenIdConnectServer diff --git a/.github/workflows/healthchecks_oracle_cd.yml b/.github/workflows/healthchecks_oracle_cd.yml index 8846cf3431..5f9c7c343f 100644 --- a/.github/workflows/healthchecks_oracle_cd.yml +++ b/.github/workflows/healthchecks_oracle_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Oracle/HealthChecks.Oracle.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Oracle.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Oracle diff --git a/.github/workflows/healthchecks_prometheus_metrics_cd.yml b/.github/workflows/healthchecks_prometheus_metrics_cd.yml index 1d870e6809..8099cb8125 100644 --- a/.github/workflows/healthchecks_prometheus_metrics_cd.yml +++ b/.github/workflows/healthchecks_prometheus_metrics_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Prometheus.Metrics.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Prometheus.Metrics diff --git a/.github/workflows/healthchecks_publisher_applicationinsights_cd.yml b/.github/workflows/healthchecks_publisher_applicationinsights_cd.yml index 72a006c699..f9c4bc17d3 100644 --- a/.github/workflows/healthchecks_publisher_applicationinsights_cd.yml +++ b/.github/workflows/healthchecks_publisher_applicationinsights_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Publisher.ApplicationInsights.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Publisher.ApplicationInsights diff --git a/.github/workflows/healthchecks_publisher_cloudwatch_cd.yml b/.github/workflows/healthchecks_publisher_cloudwatch_cd.yml index cdc7aa111c..8a6bf02791 100644 --- a/.github/workflows/healthchecks_publisher_cloudwatch_cd.yml +++ b/.github/workflows/healthchecks_publisher_cloudwatch_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Publisher.CloudWatch.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Publisher.CloudWatch diff --git a/.github/workflows/healthchecks_publisher_datadog_cd.yml b/.github/workflows/healthchecks_publisher_datadog_cd.yml index c23e93cf2a..0f89158bb9 100644 --- a/.github/workflows/healthchecks_publisher_datadog_cd.yml +++ b/.github/workflows/healthchecks_publisher_datadog_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Publisher.Datadog.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Publisher.Datadog diff --git a/.github/workflows/healthchecks_publisher_prometheus_cd.yml b/.github/workflows/healthchecks_publisher_prometheus_cd.yml index 0de9e3aec2..e7fb8784ca 100644 --- a/.github/workflows/healthchecks_publisher_prometheus_cd.yml +++ b/.github/workflows/healthchecks_publisher_prometheus_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Publisher.Prometheus.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Publisher.Prometheus diff --git a/.github/workflows/healthchecks_publisher_seq_cd.yml b/.github/workflows/healthchecks_publisher_seq_cd.yml index 5bd7e64d67..1b0c6f2e40 100644 --- a/.github/workflows/healthchecks_publisher_seq_cd.yml +++ b/.github/workflows/healthchecks_publisher_seq_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Publisher.Seq/HealthChecks.Publisher.Seq.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Publisher.Seq.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Publisher.Seq diff --git a/.github/workflows/healthchecks_rabbitmq_cd.yml b/.github/workflows/healthchecks_rabbitmq_cd.yml index 0223884269..374aa4a038 100644 --- a/.github/workflows/healthchecks_rabbitmq_cd.yml +++ b/.github/workflows/healthchecks_rabbitmq_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Rabbitmq/HealthChecks.Rabbitmq.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Rabbitmq.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Rabbitmq diff --git a/.github/workflows/healthchecks_ravendb_cd.yml b/.github/workflows/healthchecks_ravendb_cd.yml index 39a18f19d8..dc2b42b968 100644 --- a/.github/workflows/healthchecks_ravendb_cd.yml +++ b/.github/workflows/healthchecks_ravendb_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.RavenDB/HealthChecks.RavenDB.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.RavenDB.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.RavenDB diff --git a/.github/workflows/healthchecks_redis_cd.yml b/.github/workflows/healthchecks_redis_cd.yml index 42a2128bdc..89c5b0455f 100644 --- a/.github/workflows/healthchecks_redis_cd.yml +++ b/.github/workflows/healthchecks_redis_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Redis/HealthChecks.Redis.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Redis/HealthChecks.Redis.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Redis/HealthChecks.Redis.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Redis.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Redis/HealthChecks.Redis.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Redis diff --git a/.github/workflows/healthchecks_sendgrid_cd.yml b/.github/workflows/healthchecks_sendgrid_cd.yml index 300cf617e3..d5c421aec8 100644 --- a/.github/workflows/healthchecks_sendgrid_cd.yml +++ b/.github/workflows/healthchecks_sendgrid_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.SendGrid/HealthChecks.SendGrid.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.SendGrid.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.SendGrid diff --git a/.github/workflows/healthchecks_signalr_cd.yml b/.github/workflows/healthchecks_signalr_cd.yml index 2e9018d0d4..1757fe30ef 100644 --- a/.github/workflows/healthchecks_signalr_cd.yml +++ b/.github/workflows/healthchecks_signalr_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.SignalR/HealthChecks.SignalR.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.SignalR/HealthChecks.SignalR.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.SignalR/HealthChecks.SignalR.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.SignalR.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.SignalR/HealthChecks.SignalR.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.SignalR diff --git a/.github/workflows/healthchecks_solr_cd.yml b/.github/workflows/healthchecks_solr_cd.yml index a606538322..794d3b1961 100644 --- a/.github/workflows/healthchecks_solr_cd.yml +++ b/.github/workflows/healthchecks_solr_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Solr/HealthChecks.Solr.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Solr/HealthChecks.Solr.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Solr/HealthChecks.Solr.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Solr.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Solr/HealthChecks.Solr.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Solr diff --git a/.github/workflows/healthchecks_sqlite_cd.yml b/.github/workflows/healthchecks_sqlite_cd.yml index f1bec7ce35..d68853e702 100644 --- a/.github/workflows/healthchecks_sqlite_cd.yml +++ b/.github/workflows/healthchecks_sqlite_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Sqlite/HealthChecks.Sqlite.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Sqlite.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Sqlite diff --git a/.github/workflows/healthchecks_sqlserver_cd.yml b/.github/workflows/healthchecks_sqlserver_cd.yml index 0567d1d935..298873cd67 100644 --- a/.github/workflows/healthchecks_sqlserver_cd.yml +++ b/.github/workflows/healthchecks_sqlserver_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.SqlServer/HealthChecks.SqlServer.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.SqlServer.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.SqlServer diff --git a/.github/workflows/healthchecks_system_cd.yml b/.github/workflows/healthchecks_system_cd.yml index 6221c31bca..ac9adc732f 100644 --- a/.github/workflows/healthchecks_system_cd.yml +++ b/.github/workflows/healthchecks_system_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.System/HealthChecks.System.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.System/HealthChecks.System.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.System/HealthChecks.System.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.System.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.System/HealthChecks.System.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.System diff --git a/.github/workflows/healthchecks_ui_cd.yml b/.github/workflows/healthchecks_ui_cd.yml index ba5911c0b3..8a280a7580 100644 --- a/.github/workflows/healthchecks_ui_cd.yml +++ b/.github/workflows/healthchecks_ui_cd.yml @@ -19,6 +19,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore UI run: dotnet restore ./src/HealthChecks.UI/HealthChecks.UI.csproj - name: Restore UI.Client diff --git a/.github/workflows/healthchecks_uris_cd.yml b/.github/workflows/healthchecks_uris_cd.yml index 178cf61561..1f7d5c79fb 100644 --- a/.github/workflows/healthchecks_uris_cd.yml +++ b/.github/workflows/healthchecks_uris_cd.yml @@ -8,22 +8,9 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Uris/HealthChecks.Uris.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Uris/HealthChecks.Uris.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Uris/HealthChecks.Uris.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Uris.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + PROJECT_PATH: ./src/HealthChecks.Uris/HealthChecks.Uris.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Uris From b3a206edcd16f8245f02e7a61940da2ce7bb141a Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 12:50:42 +0200 Subject: [PATCH 08/22] update all healthchecks_*_cd_preview.yml files: use reusable worklflow that targets net8.0 --- ...lthchecks_applicationstatus_cd_preview.yml | 25 +++++------------- .../healthchecks_arangodb_cd_preview.yml | 25 +++++------------- .../healthchecks_aws_s3_cd_preview.yml | 25 +++++------------- ...thchecks_aws_secretsmanager_cd_preview.yml | 25 +++++------------- .../healthchecks_aws_sns_cd_preview.yml | 25 +++++------------- .../healthchecks_aws_sqs_cd_preview.yml | 25 +++++------------- ...thchecks_aws_systemsmanager_cd_preview.yml | 25 +++++------------- ...lthchecks_azure_digitaltwin_cd_preview.yml | 25 +++++------------- .../healthchecks_azure_iothub_cd_preview.yml | 25 +++++------------- ...ks_azureapplicationinsights_cd_preview.yml | 25 +++++------------- .../healthchecks_azuresearch_cd_preview.yml | 25 +++++------------- ...ealthchecks_azureservicebus_cd_preview.yml | 25 +++++------------- .../healthchecks_consul_cd_preview.yml | 25 +++++------------- .../healthchecks_dapr_cd_preview.yml | 25 +++++------------- .../healthchecks_documentdb_cd_preview.yml | 25 +++++------------- .../healthchecks_dynamodb_cd_preview.yml | 25 +++++------------- .../healthchecks_elasticsearch_cd_preview.yml | 25 +++++------------- .../healthchecks_eventstore_cd_preview.yml | 25 +++++------------- ...ealthchecks_eventstore_grpc_cd_preview.yml | 25 +++++------------- ...thchecks_gcp_cloudfirestore_cd_preview.yml | 25 +++++------------- .../healthchecks_gremlin_cd_preview.yml | 25 +++++------------- .../healthchecks_hangfire_cd_preview.yml | 25 +++++------------- .../healthchecks_ibmmq_cd_preview.yml | 25 +++++------------- .../healthchecks_influxdb_cd_preview.yml | 26 +++++-------------- .../healthchecks_kafka_cd_preview.yml | 25 +++++------------- .../healthchecks_kubernetes_cd_preview.yml | 25 +++++------------- .../healthchecks_mongodb_cd_preview.yml | 25 +++++------------- .../healthchecks_mysql_cd_preview.yml | 25 +++++------------- .../healthchecks_nats_cd_preview.yml | 25 +++++------------- .../healthchecks_network_cd_preview.yml | 25 +++++------------- .../healthchecks_npgsql_cd_preview.yml | 25 +++++------------- ...hchecks_openidconnectserver_cd_preview.yml | 25 +++++------------- .../healthchecks_oracle_cd_preview.yml | 25 +++++------------- ...thchecks_prometheus_metrics_cd_preview.yml | 25 +++++------------- ...blisher_applicationinsights_cd_preview.yml | 25 +++++------------- ...checks_publisher_cloudwatch_cd_preview.yml | 25 +++++------------- ...lthchecks_publisher_datadog_cd_preview.yml | 25 +++++------------- ...checks_publisher_prometheus_cd_preview.yml | 25 +++++------------- .../healthchecks_publisher_seq_cd_preview.yml | 25 +++++------------- .../healthchecks_rabbitmq_cd_preview.yml | 25 +++++------------- .../healthchecks_ravendb_cd_preview.yml | 25 +++++------------- .../healthchecks_redis_cd_preview.yml | 25 +++++------------- .../healthchecks_sendgrid_cd_preview.yml | 25 +++++------------- .../healthchecks_signalr_cd_preview.yml | 25 +++++------------- .../healthchecks_solr_cd_preview.yml | 25 +++++------------- .../healthchecks_sqlite_cd_preview.yml | 25 +++++------------- .../healthchecks_sqlserver_cd_preview.yml | 25 +++++------------- .../healthchecks_system_cd_preview.yml | 25 +++++------------- .../workflows/healthchecks_ui_cd_preview.yml | 1 + .../healthchecks_uris_cd_preview.yml | 25 +++++------------- 50 files changed, 295 insertions(+), 932 deletions(-) diff --git a/.github/workflows/healthchecks_applicationstatus_cd_preview.yml b/.github/workflows/healthchecks_applicationstatus_cd_preview.yml index ddda071da5..3f9f4712d9 100644 --- a/.github/workflows/healthchecks_applicationstatus_cd_preview.yml +++ b/.github/workflows/healthchecks_applicationstatus_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.ApplicationStatus/HealthChecks.ApplicationStatus.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.ApplicationStatus.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.ApplicationStatus diff --git a/.github/workflows/healthchecks_arangodb_cd_preview.yml b/.github/workflows/healthchecks_arangodb_cd_preview.yml index 572d4583a0..8c4e93c8c0 100644 --- a/.github/workflows/healthchecks_arangodb_cd_preview.yml +++ b/.github/workflows/healthchecks_arangodb_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.ArangoDb/HealthChecks.ArangoDb.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.ArangoDb.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.ArangoDb diff --git a/.github/workflows/healthchecks_aws_s3_cd_preview.yml b/.github/workflows/healthchecks_aws_s3_cd_preview.yml index 24acb4174f..e649315618 100644 --- a/.github/workflows/healthchecks_aws_s3_cd_preview.yml +++ b/.github/workflows/healthchecks_aws_s3_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Aws.S3/HealthChecks.Aws.S3.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.S3.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Aws.S3 diff --git a/.github/workflows/healthchecks_aws_secretsmanager_cd_preview.yml b/.github/workflows/healthchecks_aws_secretsmanager_cd_preview.yml index 386569b035..d99093b405 100644 --- a/.github/workflows/healthchecks_aws_secretsmanager_cd_preview.yml +++ b/.github/workflows/healthchecks_aws_secretsmanager_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.SecretsManager.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Aws.SecretsManager diff --git a/.github/workflows/healthchecks_aws_sns_cd_preview.yml b/.github/workflows/healthchecks_aws_sns_cd_preview.yml index 6c02faa41e..58791fb933 100644 --- a/.github/workflows/healthchecks_aws_sns_cd_preview.yml +++ b/.github/workflows/healthchecks_aws_sns_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Aws.Sns/HealthChecks.Aws.Sns.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.Sns.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Aws.Sns diff --git a/.github/workflows/healthchecks_aws_sqs_cd_preview.yml b/.github/workflows/healthchecks_aws_sqs_cd_preview.yml index 6ac4bc405d..682821c6d1 100644 --- a/.github/workflows/healthchecks_aws_sqs_cd_preview.yml +++ b/.github/workflows/healthchecks_aws_sqs_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Aws.Sqs/HealthChecks.Aws.Sqs.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.Sqs.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Aws.Sqs diff --git a/.github/workflows/healthchecks_aws_systemsmanager_cd_preview.yml b/.github/workflows/healthchecks_aws_systemsmanager_cd_preview.yml index 5291778893..48ff063747 100644 --- a/.github/workflows/healthchecks_aws_systemsmanager_cd_preview.yml +++ b/.github/workflows/healthchecks_aws_systemsmanager_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.SystemsManager.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Aws.SystemsManager diff --git a/.github/workflows/healthchecks_azure_digitaltwin_cd_preview.yml b/.github/workflows/healthchecks_azure_digitaltwin_cd_preview.yml index 0395b6a581..d5e04aea1c 100644 --- a/.github/workflows/healthchecks_azure_digitaltwin_cd_preview.yml +++ b/.github/workflows/healthchecks_azure_digitaltwin_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.AzureDigitalTwin.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.AzureDigitalTwin diff --git a/.github/workflows/healthchecks_azure_iothub_cd_preview.yml b/.github/workflows/healthchecks_azure_iothub_cd_preview.yml index 7ceb08e3bb..9b151fbaf1 100644 --- a/.github/workflows/healthchecks_azure_iothub_cd_preview.yml +++ b/.github/workflows/healthchecks_azure_iothub_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Azure.IoTHub.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Azure.IoTHub diff --git a/.github/workflows/healthchecks_azureapplicationinsights_cd_preview.yml b/.github/workflows/healthchecks_azureapplicationinsights_cd_preview.yml index 214b36d0eb..2ad6076213 100644 --- a/.github/workflows/healthchecks_azureapplicationinsights_cd_preview.yml +++ b/.github/workflows/healthchecks_azureapplicationinsights_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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 + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.AzureApplicationInsights diff --git a/.github/workflows/healthchecks_azuresearch_cd_preview.yml b/.github/workflows/healthchecks_azuresearch_cd_preview.yml index 146172624d..18f5f3179e 100644 --- a/.github/workflows/healthchecks_azuresearch_cd_preview.yml +++ b/.github/workflows/healthchecks_azuresearch_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.AzureSearch/HealthChecks.AzureSearch.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.AzureSearch.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.AzureSearch diff --git a/.github/workflows/healthchecks_azureservicebus_cd_preview.yml b/.github/workflows/healthchecks_azureservicebus_cd_preview.yml index 3337ef3b9b..57cbb6c9bc 100644 --- a/.github/workflows/healthchecks_azureservicebus_cd_preview.yml +++ b/.github/workflows/healthchecks_azureservicebus_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.AzureServiceBus/HealthChecks.AzureServiceBus.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.AzureServiceBus.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.AzureServiceBus diff --git a/.github/workflows/healthchecks_consul_cd_preview.yml b/.github/workflows/healthchecks_consul_cd_preview.yml index 21ee1b303b..c30bf664cd 100644 --- a/.github/workflows/healthchecks_consul_cd_preview.yml +++ b/.github/workflows/healthchecks_consul_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Consul/HealthChecks.Consul.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Consul/HealthChecks.Consul.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Consul/HealthChecks.Consul.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Consul.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Consul/HealthChecks.Consul.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Consul diff --git a/.github/workflows/healthchecks_dapr_cd_preview.yml b/.github/workflows/healthchecks_dapr_cd_preview.yml index bb7d9d0ceb..6193f3a12f 100644 --- a/.github/workflows/healthchecks_dapr_cd_preview.yml +++ b/.github/workflows/healthchecks_dapr_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Dapr/HealthChecks.Dapr.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Dapr/HealthChecks.Dapr.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Dapr/HealthChecks.Dapr.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Dapr.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Dapr/HealthChecks.Dapr.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Dapr diff --git a/.github/workflows/healthchecks_documentdb_cd_preview.yml b/.github/workflows/healthchecks_documentdb_cd_preview.yml index c3a14d3b9a..e8924bc114 100644 --- a/.github/workflows/healthchecks_documentdb_cd_preview.yml +++ b/.github/workflows/healthchecks_documentdb_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.DocumentDb/HealthChecks.DocumentDb.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.DocumentDb.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.DocumentDb diff --git a/.github/workflows/healthchecks_dynamodb_cd_preview.yml b/.github/workflows/healthchecks_dynamodb_cd_preview.yml index e427439c1d..05cf703f9c 100644 --- a/.github/workflows/healthchecks_dynamodb_cd_preview.yml +++ b/.github/workflows/healthchecks_dynamodb_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.DynamoDb/HealthChecks.DynamoDb.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.DynamoDb.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.DynamoDb diff --git a/.github/workflows/healthchecks_elasticsearch_cd_preview.yml b/.github/workflows/healthchecks_elasticsearch_cd_preview.yml index 4ab29ebc3b..71c13b9d1d 100644 --- a/.github/workflows/healthchecks_elasticsearch_cd_preview.yml +++ b/.github/workflows/healthchecks_elasticsearch_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Elasticsearch/HealthChecks.Elasticsearch.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Elasticsearch.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Elasticsearch diff --git a/.github/workflows/healthchecks_eventstore_cd_preview.yml b/.github/workflows/healthchecks_eventstore_cd_preview.yml index 8ef094ab3c..ef8b04e464 100644 --- a/.github/workflows/healthchecks_eventstore_cd_preview.yml +++ b/.github/workflows/healthchecks_eventstore_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.EventStore/HealthChecks.EventStore.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.EventStore.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.EventStore diff --git a/.github/workflows/healthchecks_eventstore_grpc_cd_preview.yml b/.github/workflows/healthchecks_eventstore_grpc_cd_preview.yml index 1dfcadc909..892bbf32d0 100644 --- a/.github/workflows/healthchecks_eventstore_grpc_cd_preview.yml +++ b/.github/workflows/healthchecks_eventstore_grpc_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.EventStore.gRPC.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.EventStore.gRPC diff --git a/.github/workflows/healthchecks_gcp_cloudfirestore_cd_preview.yml b/.github/workflows/healthchecks_gcp_cloudfirestore_cd_preview.yml index b471edb562..0870661053 100644 --- a/.github/workflows/healthchecks_gcp_cloudfirestore_cd_preview.yml +++ b/.github/workflows/healthchecks_gcp_cloudfirestore_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Gcp.CloudFirestore.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Gcp.CloudFirestore diff --git a/.github/workflows/healthchecks_gremlin_cd_preview.yml b/.github/workflows/healthchecks_gremlin_cd_preview.yml index 6ef7c0f417..5649d19409 100644 --- a/.github/workflows/healthchecks_gremlin_cd_preview.yml +++ b/.github/workflows/healthchecks_gremlin_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Gremlin/HealthChecks.Gremlin.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Gremlin.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Gremlin diff --git a/.github/workflows/healthchecks_hangfire_cd_preview.yml b/.github/workflows/healthchecks_hangfire_cd_preview.yml index 1f9df6a2a6..98f882abaf 100644 --- a/.github/workflows/healthchecks_hangfire_cd_preview.yml +++ b/.github/workflows/healthchecks_hangfire_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Hangfire/HealthChecks.Hangfire.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Hangfire.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Hangfire diff --git a/.github/workflows/healthchecks_ibmmq_cd_preview.yml b/.github/workflows/healthchecks_ibmmq_cd_preview.yml index 5c94f29331..b3cc103aa7 100644 --- a/.github/workflows/healthchecks_ibmmq_cd_preview.yml +++ b/.github/workflows/healthchecks_ibmmq_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.IbmMQ/HealthChecks.IbmMQ.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.IbmMQ.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.IbmMQ diff --git a/.github/workflows/healthchecks_influxdb_cd_preview.yml b/.github/workflows/healthchecks_influxdb_cd_preview.yml index 1e1c134548..e6d6147b5e 100644 --- a/.github/workflows/healthchecks_influxdb_cd_preview.yml +++ b/.github/workflows/healthchecks_influxdb_cd_preview.yml @@ -8,24 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.InfluxDB/HealthChecks.InfluxDB.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj -c $BUILD_CONFIG - - name: dotnet pack - run: dotnet pack --no-build ./src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.InfluxDB.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate - + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.InfluxDB diff --git a/.github/workflows/healthchecks_kafka_cd_preview.yml b/.github/workflows/healthchecks_kafka_cd_preview.yml index a0ca4dc14e..e06ed3a282 100644 --- a/.github/workflows/healthchecks_kafka_cd_preview.yml +++ b/.github/workflows/healthchecks_kafka_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Kafka/HealthChecks.Kafka.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Kafka.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Kafka diff --git a/.github/workflows/healthchecks_kubernetes_cd_preview.yml b/.github/workflows/healthchecks_kubernetes_cd_preview.yml index 1082dac80e..6b2dd63d06 100644 --- a/.github/workflows/healthchecks_kubernetes_cd_preview.yml +++ b/.github/workflows/healthchecks_kubernetes_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Kubernetes/HealthChecks.Kubernetes.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Kubernetes.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Kubernetes diff --git a/.github/workflows/healthchecks_mongodb_cd_preview.yml b/.github/workflows/healthchecks_mongodb_cd_preview.yml index e15e44ea3a..7ab78b2a0f 100644 --- a/.github/workflows/healthchecks_mongodb_cd_preview.yml +++ b/.github/workflows/healthchecks_mongodb_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.MongoDb/HealthChecks.MongoDb.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.MongoDb.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.MongoDb diff --git a/.github/workflows/healthchecks_mysql_cd_preview.yml b/.github/workflows/healthchecks_mysql_cd_preview.yml index ff98095009..327e4b9d0b 100644 --- a/.github/workflows/healthchecks_mysql_cd_preview.yml +++ b/.github/workflows/healthchecks_mysql_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.MySql/HealthChecks.MySql.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.MySql/HealthChecks.MySql.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.MySql/HealthChecks.MySql.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.MySql.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.MySql/HealthChecks.MySql.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.MySql diff --git a/.github/workflows/healthchecks_nats_cd_preview.yml b/.github/workflows/healthchecks_nats_cd_preview.yml index 75ff502de0..e641076315 100644 --- a/.github/workflows/healthchecks_nats_cd_preview.yml +++ b/.github/workflows/healthchecks_nats_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Nats/HealthChecks.Nats.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Nats/HealthChecks.Nats.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Nats/HealthChecks.Nats.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Nats.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Nats/HealthChecks.Nats.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Nats diff --git a/.github/workflows/healthchecks_network_cd_preview.yml b/.github/workflows/healthchecks_network_cd_preview.yml index e78aef34ee..730b6d3c26 100644 --- a/.github/workflows/healthchecks_network_cd_preview.yml +++ b/.github/workflows/healthchecks_network_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Network/HealthChecks.Network.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Network/HealthChecks.Network.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Network/HealthChecks.Network.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Network.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Network/HealthChecks.Network.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Network diff --git a/.github/workflows/healthchecks_npgsql_cd_preview.yml b/.github/workflows/healthchecks_npgsql_cd_preview.yml index bfeb257e35..992e06adca 100644 --- a/.github/workflows/healthchecks_npgsql_cd_preview.yml +++ b/.github/workflows/healthchecks_npgsql_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.NpgSql/HealthChecks.NpgSql.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.NpgSql.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.NpgSql diff --git a/.github/workflows/healthchecks_openidconnectserver_cd_preview.yml b/.github/workflows/healthchecks_openidconnectserver_cd_preview.yml index 41fa0c8976..1bb264e680 100644 --- a/.github/workflows/healthchecks_openidconnectserver_cd_preview.yml +++ b/.github/workflows/healthchecks_openidconnectserver_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.OpenIdConnectServer.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.OpenIdConnectServer diff --git a/.github/workflows/healthchecks_oracle_cd_preview.yml b/.github/workflows/healthchecks_oracle_cd_preview.yml index 1f7817f898..138202f3f0 100644 --- a/.github/workflows/healthchecks_oracle_cd_preview.yml +++ b/.github/workflows/healthchecks_oracle_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Oracle/HealthChecks.Oracle.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Oracle.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Oracle diff --git a/.github/workflows/healthchecks_prometheus_metrics_cd_preview.yml b/.github/workflows/healthchecks_prometheus_metrics_cd_preview.yml index d5d2ffa59d..d4e2df3aa1 100644 --- a/.github/workflows/healthchecks_prometheus_metrics_cd_preview.yml +++ b/.github/workflows/healthchecks_prometheus_metrics_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Prometheus.Metrics.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Prometheus.Metrics diff --git a/.github/workflows/healthchecks_publisher_applicationinsights_cd_preview.yml b/.github/workflows/healthchecks_publisher_applicationinsights_cd_preview.yml index 60aec35aac..a23370ff9c 100644 --- a/.github/workflows/healthchecks_publisher_applicationinsights_cd_preview.yml +++ b/.github/workflows/healthchecks_publisher_applicationinsights_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Publisher.ApplicationInsights.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Publisher.ApplicationInsights diff --git a/.github/workflows/healthchecks_publisher_cloudwatch_cd_preview.yml b/.github/workflows/healthchecks_publisher_cloudwatch_cd_preview.yml index 1fbd534505..4a506f56fc 100644 --- a/.github/workflows/healthchecks_publisher_cloudwatch_cd_preview.yml +++ b/.github/workflows/healthchecks_publisher_cloudwatch_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Publisher.CloudWatch.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Publisher.CloudWatch diff --git a/.github/workflows/healthchecks_publisher_datadog_cd_preview.yml b/.github/workflows/healthchecks_publisher_datadog_cd_preview.yml index 9924d93de0..84180731ac 100644 --- a/.github/workflows/healthchecks_publisher_datadog_cd_preview.yml +++ b/.github/workflows/healthchecks_publisher_datadog_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Publisher.Datadog.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Publisher.Datadog diff --git a/.github/workflows/healthchecks_publisher_prometheus_cd_preview.yml b/.github/workflows/healthchecks_publisher_prometheus_cd_preview.yml index d774f0b494..b5a6593277 100644 --- a/.github/workflows/healthchecks_publisher_prometheus_cd_preview.yml +++ b/.github/workflows/healthchecks_publisher_prometheus_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Publisher.Prometheus.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Publisher.Prometheus diff --git a/.github/workflows/healthchecks_publisher_seq_cd_preview.yml b/.github/workflows/healthchecks_publisher_seq_cd_preview.yml index 50abeddb50..42ef47d6c2 100644 --- a/.github/workflows/healthchecks_publisher_seq_cd_preview.yml +++ b/.github/workflows/healthchecks_publisher_seq_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Publisher.Seq/HealthChecks.Publisher.Seq.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Publisher.Seq.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Publisher.Seq diff --git a/.github/workflows/healthchecks_rabbitmq_cd_preview.yml b/.github/workflows/healthchecks_rabbitmq_cd_preview.yml index 7d0b218b12..f0bd674598 100644 --- a/.github/workflows/healthchecks_rabbitmq_cd_preview.yml +++ b/.github/workflows/healthchecks_rabbitmq_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Rabbitmq/HealthChecks.Rabbitmq.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Rabbitmq.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Rabbitmq diff --git a/.github/workflows/healthchecks_ravendb_cd_preview.yml b/.github/workflows/healthchecks_ravendb_cd_preview.yml index ac19e180b1..599ea05057 100644 --- a/.github/workflows/healthchecks_ravendb_cd_preview.yml +++ b/.github/workflows/healthchecks_ravendb_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.RavenDB/HealthChecks.RavenDB.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.RavenDB.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.RavenDB diff --git a/.github/workflows/healthchecks_redis_cd_preview.yml b/.github/workflows/healthchecks_redis_cd_preview.yml index 65a162094c..a55669695d 100644 --- a/.github/workflows/healthchecks_redis_cd_preview.yml +++ b/.github/workflows/healthchecks_redis_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Redis/HealthChecks.Redis.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Redis/HealthChecks.Redis.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Redis/HealthChecks.Redis.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Redis.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Redis/HealthChecks.Redis.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Redis diff --git a/.github/workflows/healthchecks_sendgrid_cd_preview.yml b/.github/workflows/healthchecks_sendgrid_cd_preview.yml index d2fcca3d4c..17ce19822c 100644 --- a/.github/workflows/healthchecks_sendgrid_cd_preview.yml +++ b/.github/workflows/healthchecks_sendgrid_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.SendGrid/HealthChecks.SendGrid.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.SendGrid.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.SendGrid diff --git a/.github/workflows/healthchecks_signalr_cd_preview.yml b/.github/workflows/healthchecks_signalr_cd_preview.yml index 8a08884e0c..dcded62dca 100644 --- a/.github/workflows/healthchecks_signalr_cd_preview.yml +++ b/.github/workflows/healthchecks_signalr_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.SignalR/HealthChecks.SignalR.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.SignalR/HealthChecks.SignalR.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.SignalR/HealthChecks.SignalR.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.SignalR.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.SignalR/HealthChecks.SignalR.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.SignalR diff --git a/.github/workflows/healthchecks_solr_cd_preview.yml b/.github/workflows/healthchecks_solr_cd_preview.yml index d821eff7ec..5c894a6cdf 100644 --- a/.github/workflows/healthchecks_solr_cd_preview.yml +++ b/.github/workflows/healthchecks_solr_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Solr/HealthChecks.Solr.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Solr/HealthChecks.Solr.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Solr/HealthChecks.Solr.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Solr.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Solr/HealthChecks.Solr.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Solr diff --git a/.github/workflows/healthchecks_sqlite_cd_preview.yml b/.github/workflows/healthchecks_sqlite_cd_preview.yml index f38fd0966c..a9e31115f0 100644 --- a/.github/workflows/healthchecks_sqlite_cd_preview.yml +++ b/.github/workflows/healthchecks_sqlite_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Sqlite/HealthChecks.Sqlite.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Sqlite.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Sqlite diff --git a/.github/workflows/healthchecks_sqlserver_cd_preview.yml b/.github/workflows/healthchecks_sqlserver_cd_preview.yml index 1037bd369d..1f0df88363 100644 --- a/.github/workflows/healthchecks_sqlserver_cd_preview.yml +++ b/.github/workflows/healthchecks_sqlserver_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.SqlServer/HealthChecks.SqlServer.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.SqlServer.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.SqlServer diff --git a/.github/workflows/healthchecks_system_cd_preview.yml b/.github/workflows/healthchecks_system_cd_preview.yml index bf90016268..1715e2c8e7 100644 --- a/.github/workflows/healthchecks_system_cd_preview.yml +++ b/.github/workflows/healthchecks_system_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.System/HealthChecks.System.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.System/HealthChecks.System.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.System/HealthChecks.System.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.System.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.System/HealthChecks.System.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.System diff --git a/.github/workflows/healthchecks_ui_cd_preview.yml b/.github/workflows/healthchecks_ui_cd_preview.yml index 2b16cb40da..c92f84bccb 100644 --- a/.github/workflows/healthchecks_ui_cd_preview.yml +++ b/.github/workflows/healthchecks_ui_cd_preview.yml @@ -20,6 +20,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore UI run: dotnet restore ./src/HealthChecks.UI/HealthChecks.UI.csproj - name: Restore UI.Client diff --git a/.github/workflows/healthchecks_uris_cd_preview.yml b/.github/workflows/healthchecks_uris_cd_preview.yml index 344fb80adc..75c98a7cda 100644 --- a/.github/workflows/healthchecks_uris_cd_preview.yml +++ b/.github/workflows/healthchecks_uris_cd_preview.yml @@ -8,23 +8,10 @@ on: jobs: build: - env: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: 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.Uris/HealthChecks.Uris.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Uris/HealthChecks.Uris.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Uris/HealthChecks.Uris.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Uris.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + VERSION_SUFFIX_PREFIX: rc1 + PROJECT_PATH: ./src/HealthChecks.Uris/HealthChecks.Uris.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Uris From 74d7da750151d09f3bd70a015c23b535df0b6bf5 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 13:12:47 +0200 Subject: [PATCH 09/22] update all healthchecks_*_ci.yml files: use reusable worklflow that targets net8.0 --- .../healthchecks_applicationstatus_ci.yml | 43 +++-------------- .github/workflows/healthchecks_aws_s3_ci.yml | 43 +++-------------- .../healthchecks_aws_secretsmanager_ci.yml | 48 ++++--------------- .github/workflows/healthchecks_aws_sns_ci.yml | 43 +++-------------- .github/workflows/healthchecks_aws_sqs_ci.yml | 43 +++-------------- .../healthchecks_aws_systemsmanager_ci.yml | 47 ++++-------------- .../healthchecks_azure_digitaltwin_ci.yml | 43 +++-------------- .../healthchecks_azure_iothub_ci.yml | 43 +++-------------- ...althchecks_azureapplicationinsights_ci.yml | 43 +++-------------- .../workflows/healthchecks_azuresearch_ci.yml | 43 +++-------------- .../healthchecks_azureservicebus_ci.yml | 43 +++-------------- .github/workflows/healthchecks_dapr_ci.yml | 43 +++-------------- .../workflows/healthchecks_documentdb_ci.yml | 43 +++-------------- .../workflows/healthchecks_dynamodb_ci.yml | 43 +++-------------- .../healthchecks_gcp_cloudfirestore_ci.yml | 43 +++-------------- .../workflows/healthchecks_hangfire_ci.yml | 43 +++-------------- .../workflows/healthchecks_kubernetes_ci.yml | 43 +++-------------- .../healthchecks_openidconnectserver_ci.yml | 42 +++------------- .../healthchecks_prometheus_metrics_ci.yml | 43 +++-------------- ...hecks_publisher_applicationinsights_ci.yml | 43 +++-------------- .../healthchecks_publisher_datadog_ci.yml | 43 +++-------------- .../healthchecks_publisher_prometheus_ci.yml | 43 +++-------------- .../healthchecks_publisher_seq_ci.yml | 43 +++-------------- .../workflows/healthchecks_sendgrid_ci.yml | 43 +++-------------- .github/workflows/healthchecks_signalr_ci.yml | 43 +++-------------- .github/workflows/healthchecks_sqlite_ci.yml | 43 +++-------------- .github/workflows/healthchecks_system_ci.yml | 43 +++-------------- .github/workflows/healthchecks_uris_ci.yml | 43 +++-------------- 28 files changed, 199 insertions(+), 1013 deletions(-) diff --git a/.github/workflows/healthchecks_applicationstatus_ci.yml b/.github/workflows/healthchecks_applicationstatus_ci.yml index 355801f36f..1f8e549639 100644 --- a/.github/workflows/healthchecks_applicationstatus_ci.yml +++ b/.github/workflows/healthchecks_applicationstatus_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.ApplicationStatus.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_applicationstatus_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.ApplicationStatus.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_applicationstatus_ci.yml + - .github/workflows/reusable_ci_workflow.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.ApplicationStatus/HealthChecks.ApplicationStatus.csproj && - dotnet restore ./test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj && - dotnet build --no-restore ./test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.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: ApplicationStatus - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj + CODECOV_FLAGS: ApplicationStatus diff --git a/.github/workflows/healthchecks_aws_s3_ci.yml b/.github/workflows/healthchecks_aws_s3_ci.yml index 65dbe41679..2ff11e964a 100644 --- a/.github/workflows/healthchecks_aws_s3_ci.yml +++ b/.github/workflows/healthchecks_aws_s3_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Aws.S3.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_s3_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Aws.S3.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_s3_ci.yml + - .github/workflows/reusable_ci_workflow.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.Aws.S3/HealthChecks.Aws.S3.csproj && - dotnet restore ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj && - dotnet build --no-restore ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.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: Aws.S3 - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj + CODECOV_FLAGS: Aws.S3 diff --git a/.github/workflows/healthchecks_aws_secretsmanager_ci.yml b/.github/workflows/healthchecks_aws_secretsmanager_ci.yml index c538aedf6a..389b732ef8 100644 --- a/.github/workflows/healthchecks_aws_secretsmanager_ci.yml +++ b/.github/workflows/healthchecks_aws_secretsmanager_ci.yml @@ -8,7 +8,8 @@ on: - src/HealthChecks.Aws.SecretsManager/** - test/HealthChecks.Aws.SecretsManager.Tests/** - test/_SHARED/** - - .github/workflows/healthchecks_aws_secretsManager_ci.yml + - .github/workflows/healthchecks_aws_secretsmanager_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -21,46 +22,15 @@ on: - src/HealthChecks.Aws.SecretsManager/** - test/HealthChecks.Aws.SecretsManager.Tests/** - test/_SHARED/** - - .github/workflows/healthchecks_aws_secretsManager_ci.yml + - .github/workflows/healthchecks_aws_secretsmanager_ci.yml + - .github/workflows/reusable_ci_workflow.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.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj && - dotnet restore ./test/HealthChecks.Aws.SecretsManager.Tests/HealthChecks.Aws.SecretsManager.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Aws.SecretsManager.Tests/HealthChecks.Aws.SecretsManager.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj && - dotnet build --no-restore ./test/HealthChecks.Aws.SecretsManager.Tests/HealthChecks.Aws.SecretsManager.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Aws.SecretsManager.Tests/HealthChecks.Aws.SecretsManager.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: Aws.SecretsManager - directory: .coverage - + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Aws.SecretsManager.Tests/HealthChecks.Aws.SecretsManager.Tests.csproj + CODECOV_FLAGS: Aws.SecretsManager diff --git a/.github/workflows/healthchecks_aws_sns_ci.yml b/.github/workflows/healthchecks_aws_sns_ci.yml index 847db44968..e434ac9f28 100644 --- a/.github/workflows/healthchecks_aws_sns_ci.yml +++ b/.github/workflows/healthchecks_aws_sns_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Aws.Sns.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_sns_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Aws.Sns.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_sns_ci.yml + - .github/workflows/reusable_ci_workflow.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.Aws.Sns/HealthChecks.Aws.Sns.csproj && - dotnet restore ./test/HealthChecks.Aws.Sns.Tests/HealthChecks.Aws.Sns.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Aws.Sns.Tests/HealthChecks.Aws.Sns.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj && - dotnet build --no-restore ./test/HealthChecks.Aws.Sns.Tests/HealthChecks.Aws.Sns.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Aws.Sns.Tests/HealthChecks.Aws.Sns.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: Aws.Sns - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Aws.Sns.Tests/HealthChecks.Aws.Sns.Tests.csproj + CODECOV_FLAGS: Aws.Sns diff --git a/.github/workflows/healthchecks_aws_sqs_ci.yml b/.github/workflows/healthchecks_aws_sqs_ci.yml index 0d3b6d508e..13b908cb62 100644 --- a/.github/workflows/healthchecks_aws_sqs_ci.yml +++ b/.github/workflows/healthchecks_aws_sqs_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Aws.Sqs.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_sqs_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Aws.Sqs.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_sqs_ci.yml + - .github/workflows/reusable_ci_workflow.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.Aws.Sqs/HealthChecks.Aws.Sqs.csproj && - dotnet restore ./test/HealthChecks.Aws.Sqs.Tests/HealthChecks.Aws.Sqs.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Aws.Sqs.Tests/HealthChecks.Aws.Sqs.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj && - dotnet build --no-restore ./test/HealthChecks.Aws.Sqs.Tests/HealthChecks.Aws.Sqs.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Aws.Sqs.Tests/HealthChecks.Aws.Sqs.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: Aws.Sqs - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Aws.Sqs.Tests/HealthChecks.Aws.Sqs.Tests.csproj + CODECOV_FLAGS: Aws.Sqs diff --git a/.github/workflows/healthchecks_aws_systemsmanager_ci.yml b/.github/workflows/healthchecks_aws_systemsmanager_ci.yml index 6a38a96ddb..20e5c92c25 100644 --- a/.github/workflows/healthchecks_aws_systemsmanager_ci.yml +++ b/.github/workflows/healthchecks_aws_systemsmanager_ci.yml @@ -8,7 +8,8 @@ on: - src/HealthChecks.Aws.SystemsManager/** - test/HealthChecks.Aws.SystemsManager.Tests/** - test/_SHARED/** - - .github/workflows/healthchecks_aws_systemsManager_ci.yml + - .github/workflows/healthchecks_aws_systemsmanager_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -21,45 +22,15 @@ on: - src/HealthChecks.Aws.SystemsManager/** - test/HealthChecks.Aws.SystemsManager.Tests/** - test/_SHARED/** - - .github/workflows/healthchecks_aws_systemsManager_ci.yml + - .github/workflows/healthchecks_aws_systemsmanager_ci.yml + - .github/workflows/reusable_ci_workflow.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.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj && - dotnet restore ./test/HealthChecks.Aws.SystemsManager.Tests/HealthChecks.Aws.SystemsManager.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Aws.SystemsManager.Tests/HealthChecks.Aws.SystemsManager.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj && - dotnet build --no-restore ./test/HealthChecks.Aws.SystemsManager.Tests/HealthChecks.Aws.SystemsManager.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Aws.SystemsManager.Tests/HealthChecks.Aws.SystemsManager.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: Aws.SystemsManager - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Aws.SystemsManager.Tests/HealthChecks.Aws.SystemsManager.Tests.csproj + CODECOV_FLAGS: Aws.SystemsManager diff --git a/.github/workflows/healthchecks_azure_digitaltwin_ci.yml b/.github/workflows/healthchecks_azure_digitaltwin_ci.yml index 2cd4dae78e..4a984e126a 100644 --- a/.github/workflows/healthchecks_azure_digitaltwin_ci.yml +++ b/.github/workflows/healthchecks_azure_digitaltwin_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.AzureDigitalTwin.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azure_digitaltwin_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.AzureDigitalTwin.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azure_digitaltwin_ci.yml + - .github/workflows/reusable_ci_workflow.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.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj && - dotnet restore ./test/HealthChecks.AzureDigitalTwin.Tests/HealthChecks.AzureDigitalTwin.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.AzureDigitalTwin.Tests/HealthChecks.AzureDigitalTwin.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj && - dotnet build --no-restore ./test/HealthChecks.AzureDigitalTwin.Tests/HealthChecks.AzureDigitalTwin.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.AzureDigitalTwin.Tests/HealthChecks.AzureDigitalTwin.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: AzureDigitalTwin - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.AzureDigitalTwin.Tests/HealthChecks.AzureDigitalTwin.Tests.csproj + CODECOV_FLAGS: AzureDigitalTwin diff --git a/.github/workflows/healthchecks_azure_iothub_ci.yml b/.github/workflows/healthchecks_azure_iothub_ci.yml index 68c3255e31..295e4fe066 100644 --- a/.github/workflows/healthchecks_azure_iothub_ci.yml +++ b/.github/workflows/healthchecks_azure_iothub_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Azure.IoTHub.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azure_iothub_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Azure.IoTHub.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azure_iothub_ci.yml + - .github/workflows/reusable_ci_workflow.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.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj && - dotnet restore ./test/HealthChecks.Azure.IoTHub.Tests/HealthChecks.Azure.IoTHub.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Azure.IoTHub.Tests/HealthChecks.Azure.IoTHub.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj && - dotnet build --no-restore ./test/HealthChecks.Azure.IoTHub.Tests/HealthChecks.Azure.IoTHub.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Azure.IoTHub.Tests/HealthChecks.Azure.IoTHub.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: Azure.IoTHub - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Azure.IoTHub.Tests/HealthChecks.Azure.IoTHub.Tests.csproj + CODECOV_FLAGS: Azure.IoTHub diff --git a/.github/workflows/healthchecks_azureapplicationinsights_ci.yml b/.github/workflows/healthchecks_azureapplicationinsights_ci.yml index 7728b94c64..4387a9d5df 100644 --- a/.github/workflows/healthchecks_azureapplicationinsights_ci.yml +++ b/.github/workflows/healthchecks_azureapplicationinsights_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.AzureApplicationInsights.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azureapplicationinsights_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.AzureApplicationInsights.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azureapplicationinsights_ci.yml + - .github/workflows/reusable_ci_workflow.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 + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.AzureApplicationInsights.Tests/HealthChecks.AzureApplicationInsights.Tests.csproj + CODECOV_FLAGS: AzureApplicationInsights diff --git a/.github/workflows/healthchecks_azuresearch_ci.yml b/.github/workflows/healthchecks_azuresearch_ci.yml index 467fdf3255..2928fce0db 100644 --- a/.github/workflows/healthchecks_azuresearch_ci.yml +++ b/.github/workflows/healthchecks_azuresearch_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.AzureSearch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azuresearch_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.AzureSearch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azuresearch_ci.yml + - .github/workflows/reusable_ci_workflow.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.AzureSearch/HealthChecks.AzureSearch.csproj && - dotnet restore ./test/HealthChecks.AzureSearch.Tests/HealthChecks.AzureSearch.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.AzureSearch.Tests/HealthChecks.AzureSearch.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj && - dotnet build --no-restore ./test/HealthChecks.AzureSearch.Tests/HealthChecks.AzureSearch.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.AzureSearch.Tests/HealthChecks.AzureSearch.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: AzureSearch - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.AzureSearch.Tests/HealthChecks.AzureSearch.Tests.csproj + CODECOV_FLAGS: AzureSearch diff --git a/.github/workflows/healthchecks_azureservicebus_ci.yml b/.github/workflows/healthchecks_azureservicebus_ci.yml index 62ae5611d7..904a4be68f 100644 --- a/.github/workflows/healthchecks_azureservicebus_ci.yml +++ b/.github/workflows/healthchecks_azureservicebus_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.AzureServiceBus.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azureservicebus_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.AzureServiceBus.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azureservicebus_ci.yml + - .github/workflows/reusable_ci_workflow.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.AzureServiceBus/HealthChecks.AzureServiceBus.csproj && - dotnet restore ./test/HealthChecks.AzureServiceBus.Tests/HealthChecks.AzureServiceBus.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.AzureServiceBus.Tests/HealthChecks.AzureServiceBus.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj && - dotnet build --no-restore ./test/HealthChecks.AzureServiceBus.Tests/HealthChecks.AzureServiceBus.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.AzureServiceBus.Tests/HealthChecks.AzureServiceBus.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: AzureServiceBus - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.AzureServiceBus.Tests/HealthChecks.AzureServiceBus.Tests.csproj + CODECOV_FLAGS: AzureServiceBus diff --git a/.github/workflows/healthchecks_dapr_ci.yml b/.github/workflows/healthchecks_dapr_ci.yml index 7e9fca39fc..5927d14fd5 100644 --- a/.github/workflows/healthchecks_dapr_ci.yml +++ b/.github/workflows/healthchecks_dapr_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Dapr.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_dapr_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Dapr.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_dapr_ci.yml + - .github/workflows/reusable_ci_workflow.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.Dapr/HealthChecks.Dapr.csproj && - dotnet restore ./test/HealthChecks.Dapr.Tests/HealthChecks.Dapr.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Dapr/HealthChecks.Dapr.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Dapr.Tests/HealthChecks.Dapr.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Dapr/HealthChecks.Dapr.csproj && - dotnet build --no-restore ./test/HealthChecks.Dapr.Tests/HealthChecks.Dapr.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Dapr.Tests/HealthChecks.Dapr.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: Dapr - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Dapr/HealthChecks.Dapr.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Dapr.Tests/HealthChecks.Dapr.Tests.csproj + CODECOV_FLAGS: Dapr diff --git a/.github/workflows/healthchecks_documentdb_ci.yml b/.github/workflows/healthchecks_documentdb_ci.yml index 30682c76ee..6e11dc66f6 100644 --- a/.github/workflows/healthchecks_documentdb_ci.yml +++ b/.github/workflows/healthchecks_documentdb_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.DocumentDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_documentdb_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.DocumentDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_documentdb_ci.yml + - .github/workflows/reusable_ci_workflow.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.DocumentDb/HealthChecks.DocumentDb.csproj && - dotnet restore ./test/HealthChecks.DocumentDb.Tests/HealthChecks.DocumentDb.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.DocumentDb.Tests/HealthChecks.DocumentDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj && - dotnet build --no-restore ./test/HealthChecks.DocumentDb.Tests/HealthChecks.DocumentDb.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.DocumentDb.Tests/HealthChecks.DocumentDb.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: DocumentDb - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.DocumentDb.Tests/HealthChecks.DocumentDb.Tests.csproj + CODECOV_FLAGS: DocumentDb diff --git a/.github/workflows/healthchecks_dynamodb_ci.yml b/.github/workflows/healthchecks_dynamodb_ci.yml index 3d8066834f..ed708a079b 100644 --- a/.github/workflows/healthchecks_dynamodb_ci.yml +++ b/.github/workflows/healthchecks_dynamodb_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.DynamoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_dynamodb_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.DynamoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_dynamodb_ci.yml + - .github/workflows/reusable_ci_workflow.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.DynamoDb/HealthChecks.DynamoDb.csproj && - dotnet restore ./test/HealthChecks.DynamoDb.Tests/HealthChecks.DynamoDb.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.DynamoDb.Tests/HealthChecks.DynamoDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj - dotnet build --no-restore ./test/HealthChecks.DynamoDb.Tests/HealthChecks.DynamoDb.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.DynamoDb.Tests/HealthChecks.DynamoDb.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: DynamoDb - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.DynamoDb.Tests/HealthChecks.DynamoDb.Tests.csproj + CODECOV_FLAGS: DynamoDb diff --git a/.github/workflows/healthchecks_gcp_cloudfirestore_ci.yml b/.github/workflows/healthchecks_gcp_cloudfirestore_ci.yml index d6961bcba7..0cc9d2f178 100644 --- a/.github/workflows/healthchecks_gcp_cloudfirestore_ci.yml +++ b/.github/workflows/healthchecks_gcp_cloudfirestore_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Gcp.CloudFirestore.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_gcp_cloudfirestore_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Gcp.CloudFirestore.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_gcp_cloudfirestore_ci.yml + - .github/workflows/reusable_ci_workflow.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.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj && - dotnet restore ./test/HealthChecks.Gcp.CloudFirestore.Tests/HealthChecks.Gcp.CloudFirestore.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Gcp.CloudFirestore.Tests/HealthChecks.Gcp.CloudFirestore.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj && - dotnet build --no-restore ./test/HealthChecks.Gcp.CloudFirestore.Tests/HealthChecks.Gcp.CloudFirestore.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Gcp.CloudFirestore.Tests/HealthChecks.Gcp.CloudFirestore.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: Gcp.CloudFirestore - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Gcp.CloudFirestore.Tests/HealthChecks.Gcp.CloudFirestore.Tests.csproj + CODECOV_FLAGS: Gcp.CloudFirestore diff --git a/.github/workflows/healthchecks_hangfire_ci.yml b/.github/workflows/healthchecks_hangfire_ci.yml index 3a1db9e76a..815d1466e9 100644 --- a/.github/workflows/healthchecks_hangfire_ci.yml +++ b/.github/workflows/healthchecks_hangfire_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Hangfire.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_hangfire_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Hangfire.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_hangfire_ci.yml + - .github/workflows/reusable_ci_workflow.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.Hangfire/HealthChecks.Hangfire.csproj && - dotnet restore ./test/HealthChecks.Hangfire.Tests/HealthChecks.Hangfire.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Hangfire.Tests/HealthChecks.Hangfire.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj && - dotnet build --no-restore ./test/HealthChecks.Hangfire.Tests/HealthChecks.Hangfire.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Hangfire.Tests/HealthChecks.Hangfire.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: Hangfire - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Hangfire.Tests/HealthChecks.Hangfire.Tests.csproj + CODECOV_FLAGS: Hangfire diff --git a/.github/workflows/healthchecks_kubernetes_ci.yml b/.github/workflows/healthchecks_kubernetes_ci.yml index 1414028721..ffddb0ea2d 100644 --- a/.github/workflows/healthchecks_kubernetes_ci.yml +++ b/.github/workflows/healthchecks_kubernetes_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Kubernetes.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_kubernetes_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Kubernetes.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_kubernetes_ci.yml + - .github/workflows/reusable_ci_workflow.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.Kubernetes/HealthChecks.Kubernetes.csproj && - dotnet restore ./test/HealthChecks.Kubernetes.Tests/HealthChecks.Kubernetes.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Kubernetes.Tests/HealthChecks.Kubernetes.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj && - dotnet build --no-restore ./test/HealthChecks.Kubernetes.Tests/HealthChecks.Kubernetes.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Kubernetes.Tests/HealthChecks.Kubernetes.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: Kubernetes - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Kubernetes.Tests/HealthChecks.Kubernetes.Tests.csproj + CODECOV_FLAGS: Kubernetes diff --git a/.github/workflows/healthchecks_openidconnectserver_ci.yml b/.github/workflows/healthchecks_openidconnectserver_ci.yml index 1fa50cd945..ce06a7f9fc 100644 --- a/.github/workflows/healthchecks_openidconnectserver_ci.yml +++ b/.github/workflows/healthchecks_openidconnectserver_ci.yml @@ -27,44 +27,14 @@ on: jobs: build: - runs-on: ubuntu-latest services: idsvr: image: nakah/identityserver4 ports: - 8888:80 - 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.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj && - dotnet restore ./test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj && - dotnet build --no-restore ./test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.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: OpenIdConnectServer - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj + CODECOV_FLAGS: OpenIdConnectServer diff --git a/.github/workflows/healthchecks_prometheus_metrics_ci.yml b/.github/workflows/healthchecks_prometheus_metrics_ci.yml index d6256fc06f..519179ef8c 100644 --- a/.github/workflows/healthchecks_prometheus_metrics_ci.yml +++ b/.github/workflows/healthchecks_prometheus_metrics_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Prometheus.Metrics.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_prometheus_metrics_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Prometheus.Metrics.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_prometheus_metrics_ci.yml + - .github/workflows/reusable_ci_workflow.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.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj && - dotnet restore ./test/HealthChecks.Prometheus.Metrics.Tests/HealthChecks.Prometheus.Metrics.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Prometheus.Metrics.Tests/HealthChecks.Prometheus.Metrics.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj && - dotnet build --no-restore ./test/HealthChecks.Prometheus.Metrics.Tests/HealthChecks.Prometheus.Metrics.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Prometheus.Metrics.Tests/HealthChecks.Prometheus.Metrics.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: Prometheus.Metrics - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Prometheus.Metrics/HealthChecks.Prometheus.Metrics.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Prometheus.Metrics.Tests/HealthChecks.Prometheus.Metrics.Tests.csproj + CODECOV_FLAGS: Prometheus.Metrics diff --git a/.github/workflows/healthchecks_publisher_applicationinsights_ci.yml b/.github/workflows/healthchecks_publisher_applicationinsights_ci.yml index cc3b776467..bf50005689 100644 --- a/.github/workflows/healthchecks_publisher_applicationinsights_ci.yml +++ b/.github/workflows/healthchecks_publisher_applicationinsights_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Publisher.ApplicationInsights.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_applicationinsights_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Publisher.ApplicationInsights.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_applicationinsights_ci.yml + - .github/workflows/reusable_ci_workflow.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.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj && - dotnet restore ./test/HealthChecks.Publisher.ApplicationInsights.Tests/HealthChecks.Publisher.ApplicationInsights.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Publisher.ApplicationInsights.Tests/HealthChecks.Publisher.ApplicationInsights.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj && - dotnet build --no-restore ./test/HealthChecks.Publisher.ApplicationInsights.Tests/HealthChecks.Publisher.ApplicationInsights.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Publisher.ApplicationInsights.Tests/HealthChecks.Publisher.ApplicationInsights.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: Publisher.ApplicationInsights - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Publisher.ApplicationInsights.Tests/HealthChecks.Publisher.ApplicationInsights.Tests.csproj + CODECOV_FLAGS: Publisher.ApplicationInsights diff --git a/.github/workflows/healthchecks_publisher_datadog_ci.yml b/.github/workflows/healthchecks_publisher_datadog_ci.yml index 14273b164e..3cc1692185 100644 --- a/.github/workflows/healthchecks_publisher_datadog_ci.yml +++ b/.github/workflows/healthchecks_publisher_datadog_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Publisher.Datadog.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_datadog_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Publisher.Datadog.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_datadog_ci.yml + - .github/workflows/reusable_ci_workflow.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.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj && - dotnet restore ./test/HealthChecks.Publisher.Datadog.Tests/HealthChecks.Publisher.Datadog.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Publisher.Datadog.Tests/HealthChecks.Publisher.Datadog.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj && - dotnet build --no-restore ./test/HealthChecks.Publisher.Datadog.Tests/HealthChecks.Publisher.Datadog.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Publisher.Datadog.Tests/HealthChecks.Publisher.Datadog.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: Publisher.Datadog - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Publisher.Datadog.Tests/HealthChecks.Publisher.Datadog.Tests.csproj + CODECOV_FLAGS: Publisher.Datadog diff --git a/.github/workflows/healthchecks_publisher_prometheus_ci.yml b/.github/workflows/healthchecks_publisher_prometheus_ci.yml index c62a88b6f1..9bfbbda0a6 100644 --- a/.github/workflows/healthchecks_publisher_prometheus_ci.yml +++ b/.github/workflows/healthchecks_publisher_prometheus_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Publisher.Prometheus.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_prometheus_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Publisher.Prometheus.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_prometheus_ci.yml + - .github/workflows/reusable_ci_workflow.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.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj && - dotnet restore ./test/HealthChecks.Publisher.Prometheus.Tests/HealthChecks.Publisher.Prometheus.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Publisher.Prometheus.Tests/HealthChecks.Publisher.Prometheus.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj && - dotnet build --no-restore ./test/HealthChecks.Publisher.Prometheus.Tests/HealthChecks.Publisher.Prometheus.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Publisher.Prometheus.Tests/HealthChecks.Publisher.Prometheus.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: Publisher.Prometheus - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Publisher.Prometheus.Tests/HealthChecks.Publisher.Prometheus.Tests.csproj + CODECOV_FLAGS: Publisher.Prometheus diff --git a/.github/workflows/healthchecks_publisher_seq_ci.yml b/.github/workflows/healthchecks_publisher_seq_ci.yml index 2d7c3985f7..af803393c0 100644 --- a/.github/workflows/healthchecks_publisher_seq_ci.yml +++ b/.github/workflows/healthchecks_publisher_seq_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Publisher.Seq.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_seq_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Publisher.Seq.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_seq_ci.yml + - .github/workflows/reusable_ci_workflow.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.Publisher.Seq/HealthChecks.Publisher.Seq.csproj && - dotnet restore ./test/HealthChecks.Publisher.Seq.Tests/HealthChecks.Publisher.Seq.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Publisher.Seq.Tests/HealthChecks.Publisher.Seq.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj && - dotnet build --no-restore ./test/HealthChecks.Publisher.Seq.Tests/HealthChecks.Publisher.Seq.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Publisher.Seq.Tests/HealthChecks.Publisher.Seq.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: Publisher.Seq - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Publisher.Seq.Tests/HealthChecks.Publisher.Seq.Tests.csproj + CODECOV_FLAGS: Publisher.Seq diff --git a/.github/workflows/healthchecks_sendgrid_ci.yml b/.github/workflows/healthchecks_sendgrid_ci.yml index 82356c3f01..85dc8f5253 100644 --- a/.github/workflows/healthchecks_sendgrid_ci.yml +++ b/.github/workflows/healthchecks_sendgrid_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.SendGrid.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_sendgrid_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.SendGrid.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_sendgrid_ci.yml + - .github/workflows/reusable_ci_workflow.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.SendGrid/HealthChecks.SendGrid.csproj && - dotnet restore ./test/HealthChecks.SendGrid.Tests/HealthChecks.SendGrid.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.SendGrid.Tests/HealthChecks.SendGrid.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj && - dotnet build --no-restore ./test/HealthChecks.SendGrid.Tests/HealthChecks.SendGrid.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.SendGrid.Tests/HealthChecks.SendGrid.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: SendGrid - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.SendGrid.Tests/HealthChecks.SendGrid.Tests.csproj + CODECOV_FLAGS: SendGrid diff --git a/.github/workflows/healthchecks_signalr_ci.yml b/.github/workflows/healthchecks_signalr_ci.yml index 1bcce00297..cbf544ffed 100644 --- a/.github/workflows/healthchecks_signalr_ci.yml +++ b/.github/workflows/healthchecks_signalr_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.SignalR.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_signalr_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.SignalR.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_signalr_ci.yml + - .github/workflows/reusable_ci_workflow.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.SignalR/HealthChecks.SignalR.csproj && - dotnet restore ./test/HealthChecks.SignalR.Tests/HealthChecks.SignalR.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.SignalR/HealthChecks.SignalR.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.SignalR.Tests/HealthChecks.SignalR.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.SignalR/HealthChecks.SignalR.csproj && - dotnet build --no-restore ./test/HealthChecks.SignalR.Tests/HealthChecks.SignalR.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.SignalR.Tests/HealthChecks.SignalR.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: SignalR - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.SignalR/HealthChecks.SignalR.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.SignalR.Tests/HealthChecks.SignalR.Tests.csproj + CODECOV_FLAGS: SignalR diff --git a/.github/workflows/healthchecks_sqlite_ci.yml b/.github/workflows/healthchecks_sqlite_ci.yml index 03e6aa1a52..08c212adbd 100644 --- a/.github/workflows/healthchecks_sqlite_ci.yml +++ b/.github/workflows/healthchecks_sqlite_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Sqlite.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_sqlite_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Sqlite.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_sqlite_ci.yml + - .github/workflows/reusable_ci_workflow.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.Sqlite/HealthChecks.Sqlite.csproj && - dotnet restore ./test/HealthChecks.Sqlite.Tests/HealthChecks.Sqlite.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Sqlite.Tests/HealthChecks.Sqlite.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj && - dotnet build --no-restore ./test/HealthChecks.Sqlite.Tests/HealthChecks.Sqlite.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Sqlite.Tests/HealthChecks.Sqlite.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: Sqlite - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Sqlite.Tests/HealthChecks.Sqlite.Tests.csproj + CODECOV_FLAGS: Sqlite diff --git a/.github/workflows/healthchecks_system_ci.yml b/.github/workflows/healthchecks_system_ci.yml index a187115b81..bb4acab1a3 100644 --- a/.github/workflows/healthchecks_system_ci.yml +++ b/.github/workflows/healthchecks_system_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.System.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_system_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.System.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_system_ci.yml + - .github/workflows/reusable_ci_workflow.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.System/HealthChecks.System.csproj && - dotnet restore ./test/HealthChecks.System.Tests/HealthChecks.System.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.System/HealthChecks.System.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.System.Tests/HealthChecks.System.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.System/HealthChecks.System.csproj && - dotnet build --no-restore ./test/HealthChecks.System.Tests/HealthChecks.System.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.System.Tests/HealthChecks.System.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: System - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.System/HealthChecks.System.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.System.Tests/HealthChecks.System.Tests.csproj + CODECOV_FLAGS: System diff --git a/.github/workflows/healthchecks_uris_ci.yml b/.github/workflows/healthchecks_uris_ci.yml index c8a9498f80..9fabc7c6cc 100644 --- a/.github/workflows/healthchecks_uris_ci.yml +++ b/.github/workflows/healthchecks_uris_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Uris.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_uris_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,44 +23,14 @@ on: - test/HealthChecks.Uris.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_uris_ci.yml + - .github/workflows/reusable_ci_workflow.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.Uris/HealthChecks.Uris.csproj && - dotnet restore ./test/HealthChecks.Uris.Tests/HealthChecks.Uris.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Uris/HealthChecks.Uris.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Uris.Tests/HealthChecks.Uris.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Uris/HealthChecks.Uris.csproj && - dotnet build --no-restore ./test/HealthChecks.Uris.Tests/HealthChecks.Uris.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Uris.Tests/HealthChecks.Uris.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: Uris - directory: .coverage + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Uris/HealthChecks.Uris.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Uris.Tests/HealthChecks.Uris.Tests.csproj + CODECOV_FLAGS: Uris From 9e79cc4f513760f328eac0f6b34c4030151dc28e Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 13:35:18 +0200 Subject: [PATCH 10/22] update all healthchecks_*_ci.yml files that use "services" (I am not sure whether it's going to work) --- .../workflows/healthchecks_arangodb_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_consul_ci.yml | 44 ++++--------------- .../healthchecks_elasticsearch_ci.yml | 44 ++++--------------- .../workflows/healthchecks_eventstore_ci.yml | 44 ++++--------------- .../healthchecks_eventstore_grpc_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_gremlin_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_ibmmq_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_kafka_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_mongodb_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_mysql_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_nats_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_npgsql_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_oracle_ci.yml | 44 ++++--------------- .../workflows/healthchecks_rabbitmq_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_ravendb_ci.yml | 44 ++++--------------- .github/workflows/healthchecks_redis_ci.yml | 44 ++++--------------- .../workflows/healthchecks_sqlserver_ci.yml | 44 ++++--------------- 17 files changed, 136 insertions(+), 612 deletions(-) diff --git a/.github/workflows/healthchecks_arangodb_ci.yml b/.github/workflows/healthchecks_arangodb_ci.yml index b813b452bd..462aaf4292 100644 --- a/.github/workflows/healthchecks_arangodb_ci.yml +++ b/.github/workflows/healthchecks_arangodb_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.ArangoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_arangodb_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.ArangoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_arangodb_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: arangodb: image: arangodb/arangodb:latest @@ -35,38 +36,9 @@ jobs: - 8529:8529 env: ARANGO_ROOT_PASSWORD: strongArangoDbPassword - 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.ArangoDb/HealthChecks.ArangoDb.csproj && - dotnet restore ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj && - dotnet build --no-restore ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.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: ArangoDb - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj + CODECOV_FLAGS: ArangoDb diff --git a/.github/workflows/healthchecks_consul_ci.yml b/.github/workflows/healthchecks_consul_ci.yml index 0622811056..3b2e3895b8 100644 --- a/.github/workflows/healthchecks_consul_ci.yml +++ b/.github/workflows/healthchecks_consul_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Consul.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_consul_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,50 +23,21 @@ on: - test/HealthChecks.Consul.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_consul_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: consul: image: hashicorp/consul:latest ports: - 8500:8500 - 8600:8600 - 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.Consul/HealthChecks.Consul.csproj && - dotnet restore ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Consul/HealthChecks.Consul.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Consul/HealthChecks.Consul.csproj && - dotnet build --no-restore ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.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: Consul - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Consul/HealthChecks.Consul.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj + CODECOV_FLAGS: Consul diff --git a/.github/workflows/healthchecks_elasticsearch_ci.yml b/.github/workflows/healthchecks_elasticsearch_ci.yml index 8f158345d9..2986a3d65f 100644 --- a/.github/workflows/healthchecks_elasticsearch_ci.yml +++ b/.github/workflows/healthchecks_elasticsearch_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Elasticsearch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_elasticsearch_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,50 +23,21 @@ on: - test/HealthChecks.Elasticsearch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_elasticsearch_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2 ports: - 9300:9300 - 9201:9200 - 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.Elasticsearch/HealthChecks.Elasticsearch.csproj && - dotnet restore ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj && - dotnet build --no-restore ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.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: Elasticsearch - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj + CODECOV_FLAGS: Elasticsearch diff --git a/.github/workflows/healthchecks_eventstore_ci.yml b/.github/workflows/healthchecks_eventstore_ci.yml index a8cac8fea0..dc7b022729 100644 --- a/.github/workflows/healthchecks_eventstore_ci.yml +++ b/.github/workflows/healthchecks_eventstore_ci.yml @@ -8,6 +8,7 @@ on: - test/HealthChecks.EventStore.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -21,12 +22,12 @@ on: - test/HealthChecks.EventStore.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: eventstore: image: eventstore/eventstore @@ -37,38 +38,9 @@ jobs: EVENTSTORE_INSECURE: true EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP: true EVENTSTORE_ENABLE_EXTERNAL_TCP: true - 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.EventStore/HealthChecks.EventStore.csproj && - dotnet restore ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj && - dotnet build --no-restore ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.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: EventStore - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj + CODECOV_FLAGS: EventStore diff --git a/.github/workflows/healthchecks_eventstore_grpc_ci.yml b/.github/workflows/healthchecks_eventstore_grpc_ci.yml index 122db71de2..52954390df 100644 --- a/.github/workflows/healthchecks_eventstore_grpc_ci.yml +++ b/.github/workflows/healthchecks_eventstore_grpc_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.EventStore.gRPC.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_grpc_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.EventStore.gRPC.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_grpc_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: eventstore: image: eventstore/eventstore @@ -36,38 +37,9 @@ jobs: - "2113:2113" env: EVENTSTORE_INSECURE: true - 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.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj && - dotnet restore ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj && - dotnet build --no-restore ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.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: EventStore.gRPC - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj + CODECOV_FLAGS: EventStore.gRPC diff --git a/.github/workflows/healthchecks_gremlin_ci.yml b/.github/workflows/healthchecks_gremlin_ci.yml index b8a8498c44..c908112e2f 100644 --- a/.github/workflows/healthchecks_gremlin_ci.yml +++ b/.github/workflows/healthchecks_gremlin_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Gremlin.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_gremlin_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.Gremlin.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_gremlin_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: gremlin: image: tinkerpop/gremlin-server @@ -36,38 +37,9 @@ jobs: env: VIRTUAL_HOST: gremlin.docker VIRTUAL_PORT: 8182 - 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.Gremlin/HealthChecks.Gremlin.csproj && - dotnet restore ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj && - dotnet build --no-restore ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.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: Gremlin - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj + CODECOV_FLAGS: Gremlin diff --git a/.github/workflows/healthchecks_ibmmq_ci.yml b/.github/workflows/healthchecks_ibmmq_ci.yml index c32c4cb740..bc3e692ac0 100644 --- a/.github/workflows/healthchecks_ibmmq_ci.yml +++ b/.github/workflows/healthchecks_ibmmq_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.IbmMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ibmmq_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.IbmMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ibmmq_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: ibmmq: image: ibmcom/mq @@ -39,38 +40,9 @@ jobs: MQ_QMGR_NAME: QM1 MQ_APP_PASSWORD: 12345678 MQ_ENABLE_METRICS: true - 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.IbmMQ/HealthChecks.IbmMQ.csproj && - dotnet restore ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj && - dotnet build --no-restore ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.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: IbmMQ - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj + CODECOV_FLAGS: IbmMQ diff --git a/.github/workflows/healthchecks_kafka_ci.yml b/.github/workflows/healthchecks_kafka_ci.yml index 416abc4b5d..d6f9b977ee 100644 --- a/.github/workflows/healthchecks_kafka_ci.yml +++ b/.github/workflows/healthchecks_kafka_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Kafka.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_kafka_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.Kafka.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_kafka_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: zookeeper: image: confluent/zookeeper @@ -41,38 +42,9 @@ jobs: KAFKA_ADVERTISED_HOST_NAME: localhost KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_ADVERTISED_PORT: 9092 - 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.Kafka/HealthChecks.Kafka.csproj && - dotnet restore ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj && - dotnet build --no-restore ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.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: Kafka - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj + CODECOV_FLAGS: Kafka diff --git a/.github/workflows/healthchecks_mongodb_ci.yml b/.github/workflows/healthchecks_mongodb_ci.yml index f5a5defbce..0eb3bf7814 100644 --- a/.github/workflows/healthchecks_mongodb_ci.yml +++ b/.github/workflows/healthchecks_mongodb_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.MongoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mongodb_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,49 +23,20 @@ on: - test/HealthChecks.MongoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mongodb_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: mongo: image: mongo ports: - 27017:27017 - 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.MongoDb/HealthChecks.MongoDb.csproj && - dotnet restore ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj && - dotnet build --no-restore ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.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: MongoDb - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj + CODECOV_FLAGS: MongoDb diff --git a/.github/workflows/healthchecks_mysql_ci.yml b/.github/workflows/healthchecks_mysql_ci.yml index 4c45d9c4eb..f6fa75353b 100644 --- a/.github/workflows/healthchecks_mysql_ci.yml +++ b/.github/workflows/healthchecks_mysql_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.MySql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mysql_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.MySql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mysql_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: mysql: image: mysql @@ -35,38 +36,9 @@ jobs: - 3306:3306 env: MYSQL_ROOT_PASSWORD: Password12! - 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.MySql/HealthChecks.MySql.csproj && - dotnet restore ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.MySql/HealthChecks.MySql.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.MySql/HealthChecks.MySql.csproj && - dotnet build --no-restore ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.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: MySql - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.MySql/HealthChecks.MySql.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj + CODECOV_FLAGS: MySql diff --git a/.github/workflows/healthchecks_nats_ci.yml b/.github/workflows/healthchecks_nats_ci.yml index c68e1df4f8..585de38928 100644 --- a/.github/workflows/healthchecks_nats_ci.yml +++ b/.github/workflows/healthchecks_nats_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Nats.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_nats_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.Nats.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_nats_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: nats: image: nats:latest @@ -35,38 +36,9 @@ jobs: - "4222:4222" - "8222:8222" - "6222:6222" - 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.Nats/HealthChecks.Nats.csproj && - dotnet restore ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Nats/HealthChecks.Nats.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Nats/HealthChecks.Nats.csproj && - dotnet build --no-restore ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.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: Nats - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Nats/HealthChecks.Nats.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj + CODECOV_FLAGS: Nats diff --git a/.github/workflows/healthchecks_npgsql_ci.yml b/.github/workflows/healthchecks_npgsql_ci.yml index e1c71ba3c2..1e35576a91 100644 --- a/.github/workflows/healthchecks_npgsql_ci.yml +++ b/.github/workflows/healthchecks_npgsql_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Npgsql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_npgsql_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.Npgsql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_npgsql_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: npgsql: image: postgres @@ -36,38 +37,9 @@ jobs: env: POSTGRES_USER: postgres POSTGRES_PASSWORD: Password12! - 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.NpgSql/HealthChecks.NpgSql.csproj && - dotnet restore ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj && - dotnet build --no-restore ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.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: Npgsql - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj + CODECOV_FLAGS: Npgsql diff --git a/.github/workflows/healthchecks_oracle_ci.yml b/.github/workflows/healthchecks_oracle_ci.yml index ae0bbabee7..1b08bf4592 100644 --- a/.github/workflows/healthchecks_oracle_ci.yml +++ b/.github/workflows/healthchecks_oracle_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Oracle.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_oracle_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.Oracle.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_oracle_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: oracle: image: gvenzl/oracle-xe:18-slim @@ -35,38 +36,9 @@ jobs: - 1521:1521 env: ORACLE_PASSWORD: oracle - 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.Oracle/HealthChecks.Oracle.csproj && - dotnet restore ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj && - dotnet build --no-restore ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.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: Oracle - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj + CODECOV_FLAGS: Oracle diff --git a/.github/workflows/healthchecks_rabbitmq_ci.yml b/.github/workflows/healthchecks_rabbitmq_ci.yml index 22af8036e3..64e3f7af70 100644 --- a/.github/workflows/healthchecks_rabbitmq_ci.yml +++ b/.github/workflows/healthchecks_rabbitmq_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.RabbitMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_rabbitmq_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,49 +23,20 @@ on: - test/HealthChecks.RabbitMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_rabbitmq_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: rabbitmq: image: rabbitmq ports: - 5672:5672 - 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.Rabbitmq/HealthChecks.Rabbitmq.csproj && - dotnet restore ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj && - dotnet build --no-restore ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.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: RabbitMQ - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj + CODECOV_FLAGS: RabbitMQ diff --git a/.github/workflows/healthchecks_ravendb_ci.yml b/.github/workflows/healthchecks_ravendb_ci.yml index de30792701..f514b15f40 100644 --- a/.github/workflows/healthchecks_ravendb_ci.yml +++ b/.github/workflows/healthchecks_ravendb_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.RavenDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ravendb_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.RavenDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ravendb_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: ravendb: image: ravendb/ravendb @@ -35,38 +36,9 @@ jobs: - 9030:8080 env: RAVEN_ARGS: --Setup.Mode=None - 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.RavenDB/HealthChecks.RavenDB.csproj && - dotnet restore ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj && - dotnet build --no-restore ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.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: RavenDb - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj + CODECOV_FLAGS: RavenDb diff --git a/.github/workflows/healthchecks_redis_ci.yml b/.github/workflows/healthchecks_redis_ci.yml index 8d1e5e1e56..374ce3f504 100644 --- a/.github/workflows/healthchecks_redis_ci.yml +++ b/.github/workflows/healthchecks_redis_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Redis.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_redis_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,49 +23,20 @@ on: - test/HealthChecks.Redis.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_redis_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: redis: image: redis:alpine ports: - 6379:6379 - 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.Redis/HealthChecks.Redis.csproj && - dotnet restore ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Redis/HealthChecks.Redis.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Redis/HealthChecks.Redis.csproj && - dotnet build --no-restore ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.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: Redis - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.Redis/HealthChecks.Redis.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj + CODECOV_FLAGS: Redis diff --git a/.github/workflows/healthchecks_sqlserver_ci.yml b/.github/workflows/healthchecks_sqlserver_ci.yml index 9f4e88ec96..3b72691363 100644 --- a/.github/workflows/healthchecks_sqlserver_ci.yml +++ b/.github/workflows/healthchecks_sqlserver_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.SqlServer.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_sqlserver_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +23,12 @@ on: - test/HealthChecks.SqlServer.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_sqlserver_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - runs-on: ubuntu-latest services: sqlserver: image: mcr.microsoft.com/mssql/server @@ -36,38 +37,9 @@ jobs: env: ACCEPT_EULA: Y SA_PASSWORD: Password12! - 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.SqlServer/HealthChecks.SqlServer.csproj && - dotnet restore ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj && - dotnet build --no-restore ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.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: SqlServer - directory: .coverage + + uses: ./.github/workflows/reusable_ci_workflow.yml + with: + PROJECT_PATH: ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj + CODECOV_FLAGS: SqlServer From 0bbc85430314e43b91bae442701b07ac4b3b6382 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 13:47:29 +0200 Subject: [PATCH 11/22] update all healthchecks_*_ci.yml files that use "env" (I am not sure whether it's going to work) --- .../healthchecks_publisher_cloudwatch_ci.yml | 44 +++---------------- 1 file changed, 7 insertions(+), 37 deletions(-) diff --git a/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml b/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml index 24c3692b24..058a3024b6 100644 --- a/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml +++ b/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml @@ -9,6 +9,7 @@ on: - test/HealthChecks.Publisher.CloudWatch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_cloudwatch_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,46 +23,15 @@ on: - test/HealthChecks.Publisher.CloudWatch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_cloudwatch_ci.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - env: + uses: ./.github/workflows/reusable_ci_workflow.yml + with: AWS_REGION: us-east-1 - 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.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj && - dotnet restore ./test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj - - name: Check formatting - run: | - dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && - dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) - - name: Build - run: | - dotnet build --no-restore ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj && - dotnet build --no-restore ./test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj - - name: Test - run: > - dotnet test - ./test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.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: Publisher.CloudWatch - directory: .coverage + PROJECT_PATH: ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj + TEST_PROJECT_PATH: ./test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj + CODECOV_FLAGS: Publisher.CloudWatch From f5f5f70b07b042b6b3e848a0880609ecdf311c62 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 13:48:32 +0200 Subject: [PATCH 12/22] manually update two complex ci files that would not benefit from reusable worklfow --- .github/workflows/healthchecks_influxdb_ci.yml | 1 + .github/workflows/healthchecks_network_ci.yml | 1 + .github/workflows/healthchecks_solr_ci.yml | 1 + .github/workflows/healthchecks_ui_ci.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/healthchecks_influxdb_ci.yml b/.github/workflows/healthchecks_influxdb_ci.yml index c76f72b6bb..3b7984f289 100644 --- a/.github/workflows/healthchecks_influxdb_ci.yml +++ b/.github/workflows/healthchecks_influxdb_ci.yml @@ -36,6 +36,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj && diff --git a/.github/workflows/healthchecks_network_ci.yml b/.github/workflows/healthchecks_network_ci.yml index 26d3861a57..0ab87e4de6 100644 --- a/.github/workflows/healthchecks_network_ci.yml +++ b/.github/workflows/healthchecks_network_ci.yml @@ -68,6 +68,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Network/HealthChecks.Network.csproj && diff --git a/.github/workflows/healthchecks_solr_ci.yml b/.github/workflows/healthchecks_solr_ci.yml index c6fb173546..7205fb0c71 100644 --- a/.github/workflows/healthchecks_solr_ci.yml +++ b/.github/workflows/healthchecks_solr_ci.yml @@ -55,6 +55,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Solr/HealthChecks.Solr.csproj && diff --git a/.github/workflows/healthchecks_ui_ci.yml b/.github/workflows/healthchecks_ui_ci.yml index f9fd8a5916..d317ab4a84 100644 --- a/.github/workflows/healthchecks_ui_ci.yml +++ b/.github/workflows/healthchecks_ui_ci.yml @@ -63,6 +63,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.UI/HealthChecks.UI.csproj && From 2343889bcdec75537524d031377e53f63201d6f3 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 13:53:32 +0200 Subject: [PATCH 13/22] remove whitespace from the end of the file name and update it too --- .../healthchecks_azure_iothub_cd .yml | 29 ------------------- .../healthchecks_azure_iothub_cd.yml | 16 ++++++++++ 2 files changed, 16 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/healthchecks_azure_iothub_cd .yml create mode 100644 .github/workflows/healthchecks_azure_iothub_cd.yml diff --git a/.github/workflows/healthchecks_azure_iothub_cd .yml b/.github/workflows/healthchecks_azure_iothub_cd .yml deleted file mode 100644 index 16f28fb2db..0000000000 --- a/.github/workflows/healthchecks_azure_iothub_cd .yml +++ /dev/null @@ -1,29 +0,0 @@ -name: HealthChecks Azure.IoTHub CD - -on: - push: - tags: - - release-azure_iothub-* - - 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.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj - - name: Build - run: dotnet build --no-restore ./src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj -c $BUILD_CONFIG - - name: Pack - run: dotnet pack --no-build ./src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj -c $BUILD_CONFIG -o ./artifacts - - name: Publish - run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Azure.IoTHub.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate diff --git a/.github/workflows/healthchecks_azure_iothub_cd.yml b/.github/workflows/healthchecks_azure_iothub_cd.yml new file mode 100644 index 0000000000..3d1e645d5d --- /dev/null +++ b/.github/workflows/healthchecks_azure_iothub_cd.yml @@ -0,0 +1,16 @@ +name: HealthChecks Azure.IoTHub CD + +on: + push: + tags: + - release-azure_iothub-* + - release-all-* + +jobs: + build: + uses: ./.github/workflows/reusable_cd_workflow.yml + secrets: inherit + with: + BUILD_CONFIG: Release + PROJECT_PATH: ./src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj + PACKAGE_NAME: AspNetCore.HealthChecks.Azure.IoTHub From 7cd1adfe724c62b61d996f94fa5cb336a225e9ba Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 13:57:07 +0200 Subject: [PATCH 14/22] update all versions to 8.0 --- build/versions.props | 132 +++++++++++++++++++++---------------------- 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/build/versions.props b/build/versions.props index cc7261cd81..3d7d4f06d7 100644 --- a/build/versions.props +++ b/build/versions.props @@ -1,73 +1,73 @@ - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 8.0.0 - 7.0.0 - 7.3.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.1.0 - 7.0.0 - 7.1.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.1.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.1 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.3 - 7.1.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 - 7.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 + 8.0.0 From c32c2a0bc17ae509b554cca3ce372eb095da87b3 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 14:15:54 +0200 Subject: [PATCH 15/22] Revert "update all healthchecks_*_ci.yml files that use "services" (I am not sure whether it's going to work)" This reverts commit 9e79cc4f513760f328eac0f6b34c4030151dc28e. --- .../workflows/healthchecks_arangodb_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_consul_ci.yml | 44 +++++++++++++++---- .../healthchecks_elasticsearch_ci.yml | 44 +++++++++++++++---- .../workflows/healthchecks_eventstore_ci.yml | 44 +++++++++++++++---- .../healthchecks_eventstore_grpc_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_gremlin_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_ibmmq_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_kafka_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_mongodb_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_mysql_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_nats_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_npgsql_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_oracle_ci.yml | 44 +++++++++++++++---- .../workflows/healthchecks_rabbitmq_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_ravendb_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_redis_ci.yml | 44 +++++++++++++++---- .../workflows/healthchecks_sqlserver_ci.yml | 44 +++++++++++++++---- 17 files changed, 612 insertions(+), 136 deletions(-) diff --git a/.github/workflows/healthchecks_arangodb_ci.yml b/.github/workflows/healthchecks_arangodb_ci.yml index 462aaf4292..b813b452bd 100644 --- a/.github/workflows/healthchecks_arangodb_ci.yml +++ b/.github/workflows/healthchecks_arangodb_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.ArangoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_arangodb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.ArangoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_arangodb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: arangodb: image: arangodb/arangodb:latest @@ -36,9 +35,38 @@ jobs: - 8529:8529 env: ARANGO_ROOT_PASSWORD: strongArangoDbPassword - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj - CODECOV_FLAGS: ArangoDb + 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.ArangoDb/HealthChecks.ArangoDb.csproj && + dotnet restore ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj && + dotnet build --no-restore ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.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: ArangoDb + directory: .coverage diff --git a/.github/workflows/healthchecks_consul_ci.yml b/.github/workflows/healthchecks_consul_ci.yml index 3b2e3895b8..0622811056 100644 --- a/.github/workflows/healthchecks_consul_ci.yml +++ b/.github/workflows/healthchecks_consul_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Consul.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_consul_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,21 +22,50 @@ on: - test/HealthChecks.Consul.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_consul_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: consul: image: hashicorp/consul:latest ports: - 8500:8500 - 8600:8600 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Consul/HealthChecks.Consul.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj - CODECOV_FLAGS: Consul + 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.Consul/HealthChecks.Consul.csproj && + dotnet restore ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Consul/HealthChecks.Consul.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Consul/HealthChecks.Consul.csproj && + dotnet build --no-restore ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.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: Consul + directory: .coverage diff --git a/.github/workflows/healthchecks_elasticsearch_ci.yml b/.github/workflows/healthchecks_elasticsearch_ci.yml index 2986a3d65f..8f158345d9 100644 --- a/.github/workflows/healthchecks_elasticsearch_ci.yml +++ b/.github/workflows/healthchecks_elasticsearch_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Elasticsearch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_elasticsearch_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,21 +22,50 @@ on: - test/HealthChecks.Elasticsearch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_elasticsearch_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2 ports: - 9300:9300 - 9201:9200 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj - CODECOV_FLAGS: Elasticsearch + 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.Elasticsearch/HealthChecks.Elasticsearch.csproj && + dotnet restore ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj && + dotnet build --no-restore ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.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: Elasticsearch + directory: .coverage diff --git a/.github/workflows/healthchecks_eventstore_ci.yml b/.github/workflows/healthchecks_eventstore_ci.yml index dc7b022729..a8cac8fea0 100644 --- a/.github/workflows/healthchecks_eventstore_ci.yml +++ b/.github/workflows/healthchecks_eventstore_ci.yml @@ -8,7 +8,6 @@ on: - test/HealthChecks.EventStore.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +21,12 @@ on: - test/HealthChecks.EventStore.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: eventstore: image: eventstore/eventstore @@ -38,9 +37,38 @@ jobs: EVENTSTORE_INSECURE: true EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP: true EVENTSTORE_ENABLE_EXTERNAL_TCP: true - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj - CODECOV_FLAGS: EventStore + 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.EventStore/HealthChecks.EventStore.csproj && + dotnet restore ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj && + dotnet build --no-restore ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.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: EventStore + directory: .coverage diff --git a/.github/workflows/healthchecks_eventstore_grpc_ci.yml b/.github/workflows/healthchecks_eventstore_grpc_ci.yml index 52954390df..122db71de2 100644 --- a/.github/workflows/healthchecks_eventstore_grpc_ci.yml +++ b/.github/workflows/healthchecks_eventstore_grpc_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.EventStore.gRPC.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_grpc_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.EventStore.gRPC.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_grpc_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: eventstore: image: eventstore/eventstore @@ -37,9 +36,38 @@ jobs: - "2113:2113" env: EVENTSTORE_INSECURE: true - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj - CODECOV_FLAGS: EventStore.gRPC + 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.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj && + dotnet restore ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj && + dotnet build --no-restore ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.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: EventStore.gRPC + directory: .coverage diff --git a/.github/workflows/healthchecks_gremlin_ci.yml b/.github/workflows/healthchecks_gremlin_ci.yml index c908112e2f..b8a8498c44 100644 --- a/.github/workflows/healthchecks_gremlin_ci.yml +++ b/.github/workflows/healthchecks_gremlin_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Gremlin.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_gremlin_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.Gremlin.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_gremlin_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: gremlin: image: tinkerpop/gremlin-server @@ -37,9 +36,38 @@ jobs: env: VIRTUAL_HOST: gremlin.docker VIRTUAL_PORT: 8182 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj - CODECOV_FLAGS: Gremlin + 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.Gremlin/HealthChecks.Gremlin.csproj && + dotnet restore ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj && + dotnet build --no-restore ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.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: Gremlin + directory: .coverage diff --git a/.github/workflows/healthchecks_ibmmq_ci.yml b/.github/workflows/healthchecks_ibmmq_ci.yml index bc3e692ac0..c32c4cb740 100644 --- a/.github/workflows/healthchecks_ibmmq_ci.yml +++ b/.github/workflows/healthchecks_ibmmq_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.IbmMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ibmmq_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.IbmMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ibmmq_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: ibmmq: image: ibmcom/mq @@ -40,9 +39,38 @@ jobs: MQ_QMGR_NAME: QM1 MQ_APP_PASSWORD: 12345678 MQ_ENABLE_METRICS: true - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj - CODECOV_FLAGS: IbmMQ + 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.IbmMQ/HealthChecks.IbmMQ.csproj && + dotnet restore ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj && + dotnet build --no-restore ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.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: IbmMQ + directory: .coverage diff --git a/.github/workflows/healthchecks_kafka_ci.yml b/.github/workflows/healthchecks_kafka_ci.yml index d6f9b977ee..416abc4b5d 100644 --- a/.github/workflows/healthchecks_kafka_ci.yml +++ b/.github/workflows/healthchecks_kafka_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Kafka.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_kafka_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.Kafka.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_kafka_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: zookeeper: image: confluent/zookeeper @@ -42,9 +41,38 @@ jobs: KAFKA_ADVERTISED_HOST_NAME: localhost KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_ADVERTISED_PORT: 9092 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj - CODECOV_FLAGS: Kafka + 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.Kafka/HealthChecks.Kafka.csproj && + dotnet restore ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj && + dotnet build --no-restore ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.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: Kafka + directory: .coverage diff --git a/.github/workflows/healthchecks_mongodb_ci.yml b/.github/workflows/healthchecks_mongodb_ci.yml index 0eb3bf7814..f5a5defbce 100644 --- a/.github/workflows/healthchecks_mongodb_ci.yml +++ b/.github/workflows/healthchecks_mongodb_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.MongoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mongodb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,20 +22,49 @@ on: - test/HealthChecks.MongoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mongodb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: mongo: image: mongo ports: - 27017:27017 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj - CODECOV_FLAGS: MongoDb + 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.MongoDb/HealthChecks.MongoDb.csproj && + dotnet restore ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj && + dotnet build --no-restore ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.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: MongoDb + directory: .coverage diff --git a/.github/workflows/healthchecks_mysql_ci.yml b/.github/workflows/healthchecks_mysql_ci.yml index f6fa75353b..4c45d9c4eb 100644 --- a/.github/workflows/healthchecks_mysql_ci.yml +++ b/.github/workflows/healthchecks_mysql_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.MySql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mysql_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.MySql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mysql_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: mysql: image: mysql @@ -36,9 +35,38 @@ jobs: - 3306:3306 env: MYSQL_ROOT_PASSWORD: Password12! - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.MySql/HealthChecks.MySql.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj - CODECOV_FLAGS: MySql + 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.MySql/HealthChecks.MySql.csproj && + dotnet restore ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.MySql/HealthChecks.MySql.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.MySql/HealthChecks.MySql.csproj && + dotnet build --no-restore ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.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: MySql + directory: .coverage diff --git a/.github/workflows/healthchecks_nats_ci.yml b/.github/workflows/healthchecks_nats_ci.yml index 585de38928..c68e1df4f8 100644 --- a/.github/workflows/healthchecks_nats_ci.yml +++ b/.github/workflows/healthchecks_nats_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Nats.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_nats_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.Nats.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_nats_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: nats: image: nats:latest @@ -36,9 +35,38 @@ jobs: - "4222:4222" - "8222:8222" - "6222:6222" - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Nats/HealthChecks.Nats.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj - CODECOV_FLAGS: Nats + 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.Nats/HealthChecks.Nats.csproj && + dotnet restore ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Nats/HealthChecks.Nats.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Nats/HealthChecks.Nats.csproj && + dotnet build --no-restore ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.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: Nats + directory: .coverage diff --git a/.github/workflows/healthchecks_npgsql_ci.yml b/.github/workflows/healthchecks_npgsql_ci.yml index 1e35576a91..e1c71ba3c2 100644 --- a/.github/workflows/healthchecks_npgsql_ci.yml +++ b/.github/workflows/healthchecks_npgsql_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Npgsql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_npgsql_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.Npgsql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_npgsql_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: npgsql: image: postgres @@ -37,9 +36,38 @@ jobs: env: POSTGRES_USER: postgres POSTGRES_PASSWORD: Password12! - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj - CODECOV_FLAGS: Npgsql + 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.NpgSql/HealthChecks.NpgSql.csproj && + dotnet restore ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj && + dotnet build --no-restore ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.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: Npgsql + directory: .coverage diff --git a/.github/workflows/healthchecks_oracle_ci.yml b/.github/workflows/healthchecks_oracle_ci.yml index 1b08bf4592..ae0bbabee7 100644 --- a/.github/workflows/healthchecks_oracle_ci.yml +++ b/.github/workflows/healthchecks_oracle_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Oracle.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_oracle_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.Oracle.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_oracle_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: oracle: image: gvenzl/oracle-xe:18-slim @@ -36,9 +35,38 @@ jobs: - 1521:1521 env: ORACLE_PASSWORD: oracle - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj - CODECOV_FLAGS: Oracle + 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.Oracle/HealthChecks.Oracle.csproj && + dotnet restore ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj && + dotnet build --no-restore ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.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: Oracle + directory: .coverage diff --git a/.github/workflows/healthchecks_rabbitmq_ci.yml b/.github/workflows/healthchecks_rabbitmq_ci.yml index 64e3f7af70..22af8036e3 100644 --- a/.github/workflows/healthchecks_rabbitmq_ci.yml +++ b/.github/workflows/healthchecks_rabbitmq_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.RabbitMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_rabbitmq_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,20 +22,49 @@ on: - test/HealthChecks.RabbitMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_rabbitmq_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: rabbitmq: image: rabbitmq ports: - 5672:5672 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj - CODECOV_FLAGS: RabbitMQ + 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.Rabbitmq/HealthChecks.Rabbitmq.csproj && + dotnet restore ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj && + dotnet build --no-restore ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.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: RabbitMQ + directory: .coverage diff --git a/.github/workflows/healthchecks_ravendb_ci.yml b/.github/workflows/healthchecks_ravendb_ci.yml index f514b15f40..de30792701 100644 --- a/.github/workflows/healthchecks_ravendb_ci.yml +++ b/.github/workflows/healthchecks_ravendb_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.RavenDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ravendb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.RavenDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ravendb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: ravendb: image: ravendb/ravendb @@ -36,9 +35,38 @@ jobs: - 9030:8080 env: RAVEN_ARGS: --Setup.Mode=None - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj - CODECOV_FLAGS: RavenDb + 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.RavenDB/HealthChecks.RavenDB.csproj && + dotnet restore ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj && + dotnet build --no-restore ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.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: RavenDb + directory: .coverage diff --git a/.github/workflows/healthchecks_redis_ci.yml b/.github/workflows/healthchecks_redis_ci.yml index 374ce3f504..8d1e5e1e56 100644 --- a/.github/workflows/healthchecks_redis_ci.yml +++ b/.github/workflows/healthchecks_redis_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Redis.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_redis_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,20 +22,49 @@ on: - test/HealthChecks.Redis.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_redis_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: redis: image: redis:alpine ports: - 6379:6379 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Redis/HealthChecks.Redis.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj - CODECOV_FLAGS: Redis + 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.Redis/HealthChecks.Redis.csproj && + dotnet restore ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Redis/HealthChecks.Redis.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Redis/HealthChecks.Redis.csproj && + dotnet build --no-restore ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.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: Redis + directory: .coverage diff --git a/.github/workflows/healthchecks_sqlserver_ci.yml b/.github/workflows/healthchecks_sqlserver_ci.yml index 3b72691363..9f4e88ec96 100644 --- a/.github/workflows/healthchecks_sqlserver_ci.yml +++ b/.github/workflows/healthchecks_sqlserver_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.SqlServer.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_sqlserver_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.SqlServer.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_sqlserver_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: sqlserver: image: mcr.microsoft.com/mssql/server @@ -37,9 +36,38 @@ jobs: env: ACCEPT_EULA: Y SA_PASSWORD: Password12! - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj - CODECOV_FLAGS: SqlServer + 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.SqlServer/HealthChecks.SqlServer.csproj && + dotnet restore ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj && + dotnet build --no-restore ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.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: SqlServer + directory: .coverage From 1b61baf7424c67e2e2b319486318ddaec6864a9d Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 14:21:53 +0200 Subject: [PATCH 16/22] add net8.0 to .yml files that use services tag --- .../workflows/healthchecks_arangodb_ci.yml | 1 + .github/workflows/healthchecks_consul_ci.yml | 1 + .../healthchecks_elasticsearch_ci.yml | 1 + .../workflows/healthchecks_eventstore_ci.yml | 1 + .../healthchecks_eventstore_grpc_ci.yml | 1 + .github/workflows/healthchecks_gremlin_ci.yml | 1 + .github/workflows/healthchecks_ibmmq_ci.yml | 1 + .github/workflows/healthchecks_kafka_ci.yml | 1 + .github/workflows/healthchecks_mongodb_ci.yml | 1 + .github/workflows/healthchecks_mysql_ci.yml | 1 + .github/workflows/healthchecks_nats_ci.yml | 1 + .github/workflows/healthchecks_npgsql_ci.yml | 1 + .../healthchecks_openidconnectserver_ci.yml | 43 ++++++++++++++++--- .github/workflows/healthchecks_oracle_ci.yml | 1 + .../workflows/healthchecks_rabbitmq_ci.yml | 1 + .github/workflows/healthchecks_ravendb_ci.yml | 1 + .github/workflows/healthchecks_redis_ci.yml | 1 + .../workflows/healthchecks_sqlserver_ci.yml | 1 + 18 files changed, 54 insertions(+), 6 deletions(-) diff --git a/.github/workflows/healthchecks_arangodb_ci.yml b/.github/workflows/healthchecks_arangodb_ci.yml index b813b452bd..26a2105a65 100644 --- a/.github/workflows/healthchecks_arangodb_ci.yml +++ b/.github/workflows/healthchecks_arangodb_ci.yml @@ -43,6 +43,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj && diff --git a/.github/workflows/healthchecks_consul_ci.yml b/.github/workflows/healthchecks_consul_ci.yml index 0622811056..2853c68658 100644 --- a/.github/workflows/healthchecks_consul_ci.yml +++ b/.github/workflows/healthchecks_consul_ci.yml @@ -42,6 +42,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Consul/HealthChecks.Consul.csproj && diff --git a/.github/workflows/healthchecks_elasticsearch_ci.yml b/.github/workflows/healthchecks_elasticsearch_ci.yml index 8f158345d9..5941f36358 100644 --- a/.github/workflows/healthchecks_elasticsearch_ci.yml +++ b/.github/workflows/healthchecks_elasticsearch_ci.yml @@ -42,6 +42,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj && diff --git a/.github/workflows/healthchecks_eventstore_ci.yml b/.github/workflows/healthchecks_eventstore_ci.yml index a8cac8fea0..be6444241b 100644 --- a/.github/workflows/healthchecks_eventstore_ci.yml +++ b/.github/workflows/healthchecks_eventstore_ci.yml @@ -45,6 +45,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj && diff --git a/.github/workflows/healthchecks_eventstore_grpc_ci.yml b/.github/workflows/healthchecks_eventstore_grpc_ci.yml index 122db71de2..864e1afe9f 100644 --- a/.github/workflows/healthchecks_eventstore_grpc_ci.yml +++ b/.github/workflows/healthchecks_eventstore_grpc_ci.yml @@ -44,6 +44,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj && diff --git a/.github/workflows/healthchecks_gremlin_ci.yml b/.github/workflows/healthchecks_gremlin_ci.yml index b8a8498c44..f80fa3a603 100644 --- a/.github/workflows/healthchecks_gremlin_ci.yml +++ b/.github/workflows/healthchecks_gremlin_ci.yml @@ -44,6 +44,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj && diff --git a/.github/workflows/healthchecks_ibmmq_ci.yml b/.github/workflows/healthchecks_ibmmq_ci.yml index c32c4cb740..431c625605 100644 --- a/.github/workflows/healthchecks_ibmmq_ci.yml +++ b/.github/workflows/healthchecks_ibmmq_ci.yml @@ -47,6 +47,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj && diff --git a/.github/workflows/healthchecks_kafka_ci.yml b/.github/workflows/healthchecks_kafka_ci.yml index 416abc4b5d..2eba93a5e7 100644 --- a/.github/workflows/healthchecks_kafka_ci.yml +++ b/.github/workflows/healthchecks_kafka_ci.yml @@ -49,6 +49,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj && diff --git a/.github/workflows/healthchecks_mongodb_ci.yml b/.github/workflows/healthchecks_mongodb_ci.yml index f5a5defbce..5e03af6bc2 100644 --- a/.github/workflows/healthchecks_mongodb_ci.yml +++ b/.github/workflows/healthchecks_mongodb_ci.yml @@ -41,6 +41,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj && diff --git a/.github/workflows/healthchecks_mysql_ci.yml b/.github/workflows/healthchecks_mysql_ci.yml index 4c45d9c4eb..5a5f924e69 100644 --- a/.github/workflows/healthchecks_mysql_ci.yml +++ b/.github/workflows/healthchecks_mysql_ci.yml @@ -43,6 +43,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.MySql/HealthChecks.MySql.csproj && diff --git a/.github/workflows/healthchecks_nats_ci.yml b/.github/workflows/healthchecks_nats_ci.yml index c68e1df4f8..38f5126a64 100644 --- a/.github/workflows/healthchecks_nats_ci.yml +++ b/.github/workflows/healthchecks_nats_ci.yml @@ -43,6 +43,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Nats/HealthChecks.Nats.csproj && diff --git a/.github/workflows/healthchecks_npgsql_ci.yml b/.github/workflows/healthchecks_npgsql_ci.yml index e1c71ba3c2..edfb43d56f 100644 --- a/.github/workflows/healthchecks_npgsql_ci.yml +++ b/.github/workflows/healthchecks_npgsql_ci.yml @@ -44,6 +44,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj && diff --git a/.github/workflows/healthchecks_openidconnectserver_ci.yml b/.github/workflows/healthchecks_openidconnectserver_ci.yml index ce06a7f9fc..e1fcde077f 100644 --- a/.github/workflows/healthchecks_openidconnectserver_ci.yml +++ b/.github/workflows/healthchecks_openidconnectserver_ci.yml @@ -27,14 +27,45 @@ on: jobs: build: + runs-on: ubuntu-latest services: idsvr: image: nakah/identityserver4 ports: - 8888:80 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj - CODECOV_FLAGS: OpenIdConnectServer + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + 8.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj && + dotnet restore ./test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj && + dotnet build --no-restore ./test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.OpenIdConnectServer.Tests/HealthChecks.OpenIdConnectServer.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: OpenIdConnectServer + directory: .coverage diff --git a/.github/workflows/healthchecks_oracle_ci.yml b/.github/workflows/healthchecks_oracle_ci.yml index ae0bbabee7..6212e91294 100644 --- a/.github/workflows/healthchecks_oracle_ci.yml +++ b/.github/workflows/healthchecks_oracle_ci.yml @@ -43,6 +43,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj && diff --git a/.github/workflows/healthchecks_rabbitmq_ci.yml b/.github/workflows/healthchecks_rabbitmq_ci.yml index 22af8036e3..3793e5c0e0 100644 --- a/.github/workflows/healthchecks_rabbitmq_ci.yml +++ b/.github/workflows/healthchecks_rabbitmq_ci.yml @@ -41,6 +41,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj && diff --git a/.github/workflows/healthchecks_ravendb_ci.yml b/.github/workflows/healthchecks_ravendb_ci.yml index de30792701..fbbbfe8b31 100644 --- a/.github/workflows/healthchecks_ravendb_ci.yml +++ b/.github/workflows/healthchecks_ravendb_ci.yml @@ -43,6 +43,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj && diff --git a/.github/workflows/healthchecks_redis_ci.yml b/.github/workflows/healthchecks_redis_ci.yml index 8d1e5e1e56..e474ed64b9 100644 --- a/.github/workflows/healthchecks_redis_ci.yml +++ b/.github/workflows/healthchecks_redis_ci.yml @@ -41,6 +41,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Redis/HealthChecks.Redis.csproj && diff --git a/.github/workflows/healthchecks_sqlserver_ci.yml b/.github/workflows/healthchecks_sqlserver_ci.yml index 9f4e88ec96..ac103122b1 100644 --- a/.github/workflows/healthchecks_sqlserver_ci.yml +++ b/.github/workflows/healthchecks_sqlserver_ci.yml @@ -44,6 +44,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj && From b25d1c1c9d59972eb15e0760b0545a5dce996420 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 14:24:24 +0200 Subject: [PATCH 17/22] Revert "update all healthchecks_*_ci.yml files that use "env" (I am not sure whether it's going to work)" This reverts commit 0bbc85430314e43b91bae442701b07ac4b3b6382. --- .../healthchecks_publisher_cloudwatch_ci.yml | 44 ++++++++++++++++--- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml b/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml index 058a3024b6..24c3692b24 100644 --- a/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml +++ b/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Publisher.CloudWatch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_cloudwatch_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,15 +22,46 @@ on: - test/HealthChecks.Publisher.CloudWatch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_publisher_cloudwatch_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: - uses: ./.github/workflows/reusable_ci_workflow.yml - with: + env: AWS_REGION: us-east-1 - PROJECT_PATH: ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj - CODECOV_FLAGS: Publisher.CloudWatch + 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.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj && + dotnet restore ./test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj && + dotnet build --no-restore ./test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Publisher.CloudWatch.Tests/HealthChecks.Publisher.CloudWatch.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: Publisher.CloudWatch + directory: .coverage From 651965408d381d752df386eb6c6b143544769fa6 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 14:24:58 +0200 Subject: [PATCH 18/22] add net8.0 to .yml files that use env tag --- .github/workflows/healthchecks_publisher_cloudwatch_ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml b/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml index 24c3692b24..234f071510 100644 --- a/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml +++ b/.github/workflows/healthchecks_publisher_cloudwatch_ci.yml @@ -38,6 +38,7 @@ jobs: dotnet-version: | 6.0.x 7.0.x + 8.0.x - name: Restore run: | dotnet restore ./src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj && From 7315fb1c88569132bb409ef35fe0b32b860b474b Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 14:32:27 +0200 Subject: [PATCH 19/22] minor fixes after reading the code again --- .../workflows/healthchecks_applicationstatus_cd_preview.yml | 2 +- .github/workflows/healthchecks_arangodb_cd_preview.yml | 2 +- .github/workflows/healthchecks_aws_s3_cd_preview.yml | 2 +- .github/workflows/healthchecks_aws_s3_ci.yml | 4 ++-- .../workflows/healthchecks_aws_secretsmanager_cd_preview.yml | 2 +- .github/workflows/healthchecks_aws_sns_cd_preview.yml | 2 +- .github/workflows/healthchecks_aws_sns_ci.yml | 4 ++-- .github/workflows/healthchecks_aws_sqs_cd_preview.yml | 2 +- .github/workflows/healthchecks_aws_sqs_ci.yml | 4 ++-- .../workflows/healthchecks_aws_systemsmanager_cd_preview.yml | 2 +- .../workflows/healthchecks_azure_digitaltwin_cd_preview.yml | 2 +- .github/workflows/healthchecks_azure_digitaltwin_ci.yml | 2 +- .github/workflows/healthchecks_azure_iothub_cd_preview.yml | 2 +- .github/workflows/healthchecks_azure_iothub_ci.yml | 2 +- .../healthchecks_azureapplicationinsights_cd_preview.yml | 2 +- .github/workflows/healthchecks_azuresearch_cd_preview.yml | 2 +- .github/workflows/healthchecks_azureservicebus_cd_preview.yml | 2 +- .github/workflows/healthchecks_azureservicebus_ci.yml | 2 +- .github/workflows/healthchecks_consul_cd_preview.yml | 2 +- .github/workflows/healthchecks_dapr_cd_preview.yml | 2 +- .github/workflows/healthchecks_documentdb_cd_preview.yml | 2 +- .github/workflows/healthchecks_dynamodb_cd_preview.yml | 2 +- .github/workflows/healthchecks_elasticsearch_cd_preview.yml | 2 +- .github/workflows/healthchecks_eventstore_cd_preview.yml | 2 +- .github/workflows/healthchecks_eventstore_grpc_cd_preview.yml | 2 +- .../workflows/healthchecks_gcp_cloudfirestore_cd_preview.yml | 2 +- .github/workflows/healthchecks_gremlin_cd_preview.yml | 2 +- .github/workflows/healthchecks_hangfire_cd_preview.yml | 2 +- .github/workflows/healthchecks_ibmmq_cd_preview.yml | 2 +- .github/workflows/healthchecks_influxdb_cd_preview.yml | 2 +- .github/workflows/healthchecks_kafka_cd_preview.yml | 2 +- .github/workflows/healthchecks_kubernetes_cd_preview.yml | 2 +- .github/workflows/healthchecks_mongodb_cd_preview.yml | 2 +- .github/workflows/healthchecks_mysql_cd_preview.yml | 2 +- .github/workflows/healthchecks_nats_cd_preview.yml | 2 +- .github/workflows/healthchecks_network_cd_preview.yml | 2 +- .github/workflows/healthchecks_npgsql_cd_preview.yml | 2 +- .../workflows/healthchecks_openidconnectserver_cd_preview.yml | 2 +- .github/workflows/healthchecks_oracle_cd_preview.yml | 2 +- .../workflows/healthchecks_prometheus_metrics_cd_preview.yml | 2 +- .../healthchecks_publisher_applicationinsights_cd_preview.yml | 2 +- .../healthchecks_publisher_cloudwatch_cd_preview.yml | 2 +- .../workflows/healthchecks_publisher_datadog_cd_preview.yml | 2 +- .../healthchecks_publisher_prometheus_cd_preview.yml | 2 +- .github/workflows/healthchecks_publisher_seq_cd_preview.yml | 2 +- .github/workflows/healthchecks_rabbitmq_cd_preview.yml | 2 +- .github/workflows/healthchecks_ravendb_cd_preview.yml | 2 +- .github/workflows/healthchecks_redis_cd_preview.yml | 2 +- .github/workflows/healthchecks_sendgrid_cd_preview.yml | 2 +- .github/workflows/healthchecks_signalr_cd_preview.yml | 2 +- .github/workflows/healthchecks_solr_cd_preview.yml | 2 +- .github/workflows/healthchecks_sqlite_cd_preview.yml | 2 +- .github/workflows/healthchecks_sqlserver_cd_preview.yml | 2 +- .github/workflows/healthchecks_system_cd_preview.yml | 2 +- .github/workflows/healthchecks_uris_cd_preview.yml | 2 +- 55 files changed, 58 insertions(+), 58 deletions(-) diff --git a/.github/workflows/healthchecks_applicationstatus_cd_preview.yml b/.github/workflows/healthchecks_applicationstatus_cd_preview.yml index 3f9f4712d9..41522d539c 100644 --- a/.github/workflows/healthchecks_applicationstatus_cd_preview.yml +++ b/.github/workflows/healthchecks_applicationstatus_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_arangodb_cd_preview.yml b/.github/workflows/healthchecks_arangodb_cd_preview.yml index 8c4e93c8c0..b26f60574c 100644 --- a/.github/workflows/healthchecks_arangodb_cd_preview.yml +++ b/.github/workflows/healthchecks_arangodb_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_aws_s3_cd_preview.yml b/.github/workflows/healthchecks_aws_s3_cd_preview.yml index e649315618..beaad87945 100644 --- a/.github/workflows/healthchecks_aws_s3_cd_preview.yml +++ b/.github/workflows/healthchecks_aws_s3_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_aws_s3_ci.yml b/.github/workflows/healthchecks_aws_s3_ci.yml index 2ff11e964a..c43a396c75 100644 --- a/.github/workflows/healthchecks_aws_s3_ci.yml +++ b/.github/workflows/healthchecks_aws_s3_ci.yml @@ -9,7 +9,7 @@ on: - test/HealthChecks.Aws.S3.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_s3_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,7 +23,7 @@ on: - test/HealthChecks.Aws.S3.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_s3_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets diff --git a/.github/workflows/healthchecks_aws_secretsmanager_cd_preview.yml b/.github/workflows/healthchecks_aws_secretsmanager_cd_preview.yml index d99093b405..0b74160e6e 100644 --- a/.github/workflows/healthchecks_aws_secretsmanager_cd_preview.yml +++ b/.github/workflows/healthchecks_aws_secretsmanager_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_aws_sns_cd_preview.yml b/.github/workflows/healthchecks_aws_sns_cd_preview.yml index 58791fb933..b579fb9628 100644 --- a/.github/workflows/healthchecks_aws_sns_cd_preview.yml +++ b/.github/workflows/healthchecks_aws_sns_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_aws_sns_ci.yml b/.github/workflows/healthchecks_aws_sns_ci.yml index e434ac9f28..4950db24e5 100644 --- a/.github/workflows/healthchecks_aws_sns_ci.yml +++ b/.github/workflows/healthchecks_aws_sns_ci.yml @@ -9,7 +9,7 @@ on: - test/HealthChecks.Aws.Sns.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_sns_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,7 +23,7 @@ on: - test/HealthChecks.Aws.Sns.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_sns_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets diff --git a/.github/workflows/healthchecks_aws_sqs_cd_preview.yml b/.github/workflows/healthchecks_aws_sqs_cd_preview.yml index 682821c6d1..e8b0e529aa 100644 --- a/.github/workflows/healthchecks_aws_sqs_cd_preview.yml +++ b/.github/workflows/healthchecks_aws_sqs_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_aws_sqs_ci.yml b/.github/workflows/healthchecks_aws_sqs_ci.yml index 13b908cb62..adcc77664b 100644 --- a/.github/workflows/healthchecks_aws_sqs_ci.yml +++ b/.github/workflows/healthchecks_aws_sqs_ci.yml @@ -9,7 +9,7 @@ on: - test/HealthChecks.Aws.Sqs.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_sqs_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,7 +23,7 @@ on: - test/HealthChecks.Aws.Sqs.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_sqs_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets diff --git a/.github/workflows/healthchecks_aws_systemsmanager_cd_preview.yml b/.github/workflows/healthchecks_aws_systemsmanager_cd_preview.yml index 48ff063747..beabe4dc0b 100644 --- a/.github/workflows/healthchecks_aws_systemsmanager_cd_preview.yml +++ b/.github/workflows/healthchecks_aws_systemsmanager_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_azure_digitaltwin_cd_preview.yml b/.github/workflows/healthchecks_azure_digitaltwin_cd_preview.yml index d5e04aea1c..3db9ba50f6 100644 --- a/.github/workflows/healthchecks_azure_digitaltwin_cd_preview.yml +++ b/.github/workflows/healthchecks_azure_digitaltwin_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_azure_digitaltwin_ci.yml b/.github/workflows/healthchecks_azure_digitaltwin_ci.yml index 4a984e126a..3493dc6329 100644 --- a/.github/workflows/healthchecks_azure_digitaltwin_ci.yml +++ b/.github/workflows/healthchecks_azure_digitaltwin_ci.yml @@ -9,7 +9,7 @@ on: - test/HealthChecks.AzureDigitalTwin.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azure_digitaltwin_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: diff --git a/.github/workflows/healthchecks_azure_iothub_cd_preview.yml b/.github/workflows/healthchecks_azure_iothub_cd_preview.yml index 9b151fbaf1..2a22d68cdd 100644 --- a/.github/workflows/healthchecks_azure_iothub_cd_preview.yml +++ b/.github/workflows/healthchecks_azure_iothub_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_azure_iothub_ci.yml b/.github/workflows/healthchecks_azure_iothub_ci.yml index 295e4fe066..e35d2c339b 100644 --- a/.github/workflows/healthchecks_azure_iothub_ci.yml +++ b/.github/workflows/healthchecks_azure_iothub_ci.yml @@ -9,7 +9,7 @@ on: - test/HealthChecks.Azure.IoTHub.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azure_iothub_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: diff --git a/.github/workflows/healthchecks_azureapplicationinsights_cd_preview.yml b/.github/workflows/healthchecks_azureapplicationinsights_cd_preview.yml index 2ad6076213..3847bd03c0 100644 --- a/.github/workflows/healthchecks_azureapplicationinsights_cd_preview.yml +++ b/.github/workflows/healthchecks_azureapplicationinsights_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_azuresearch_cd_preview.yml b/.github/workflows/healthchecks_azuresearch_cd_preview.yml index 18f5f3179e..61a5d12d92 100644 --- a/.github/workflows/healthchecks_azuresearch_cd_preview.yml +++ b/.github/workflows/healthchecks_azuresearch_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_azureservicebus_cd_preview.yml b/.github/workflows/healthchecks_azureservicebus_cd_preview.yml index 57cbb6c9bc..ad767a7b19 100644 --- a/.github/workflows/healthchecks_azureservicebus_cd_preview.yml +++ b/.github/workflows/healthchecks_azureservicebus_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_azureservicebus_ci.yml b/.github/workflows/healthchecks_azureservicebus_ci.yml index 904a4be68f..7eefa95ad9 100644 --- a/.github/workflows/healthchecks_azureservicebus_ci.yml +++ b/.github/workflows/healthchecks_azureservicebus_ci.yml @@ -9,7 +9,7 @@ on: - test/HealthChecks.AzureServiceBus.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_azureservicebus_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: diff --git a/.github/workflows/healthchecks_consul_cd_preview.yml b/.github/workflows/healthchecks_consul_cd_preview.yml index c30bf664cd..b42d9327af 100644 --- a/.github/workflows/healthchecks_consul_cd_preview.yml +++ b/.github/workflows/healthchecks_consul_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_dapr_cd_preview.yml b/.github/workflows/healthchecks_dapr_cd_preview.yml index 6193f3a12f..d58cad7e1b 100644 --- a/.github/workflows/healthchecks_dapr_cd_preview.yml +++ b/.github/workflows/healthchecks_dapr_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_documentdb_cd_preview.yml b/.github/workflows/healthchecks_documentdb_cd_preview.yml index e8924bc114..01530f7eaf 100644 --- a/.github/workflows/healthchecks_documentdb_cd_preview.yml +++ b/.github/workflows/healthchecks_documentdb_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_dynamodb_cd_preview.yml b/.github/workflows/healthchecks_dynamodb_cd_preview.yml index 05cf703f9c..b8c14af327 100644 --- a/.github/workflows/healthchecks_dynamodb_cd_preview.yml +++ b/.github/workflows/healthchecks_dynamodb_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_elasticsearch_cd_preview.yml b/.github/workflows/healthchecks_elasticsearch_cd_preview.yml index 71c13b9d1d..96ad31753a 100644 --- a/.github/workflows/healthchecks_elasticsearch_cd_preview.yml +++ b/.github/workflows/healthchecks_elasticsearch_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_eventstore_cd_preview.yml b/.github/workflows/healthchecks_eventstore_cd_preview.yml index ef8b04e464..2c60a201c2 100644 --- a/.github/workflows/healthchecks_eventstore_cd_preview.yml +++ b/.github/workflows/healthchecks_eventstore_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_eventstore_grpc_cd_preview.yml b/.github/workflows/healthchecks_eventstore_grpc_cd_preview.yml index 892bbf32d0..261ee0b921 100644 --- a/.github/workflows/healthchecks_eventstore_grpc_cd_preview.yml +++ b/.github/workflows/healthchecks_eventstore_grpc_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_gcp_cloudfirestore_cd_preview.yml b/.github/workflows/healthchecks_gcp_cloudfirestore_cd_preview.yml index 0870661053..ac9a89c933 100644 --- a/.github/workflows/healthchecks_gcp_cloudfirestore_cd_preview.yml +++ b/.github/workflows/healthchecks_gcp_cloudfirestore_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_gremlin_cd_preview.yml b/.github/workflows/healthchecks_gremlin_cd_preview.yml index 5649d19409..0dc5061b03 100644 --- a/.github/workflows/healthchecks_gremlin_cd_preview.yml +++ b/.github/workflows/healthchecks_gremlin_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_hangfire_cd_preview.yml b/.github/workflows/healthchecks_hangfire_cd_preview.yml index 98f882abaf..b0985d60f9 100644 --- a/.github/workflows/healthchecks_hangfire_cd_preview.yml +++ b/.github/workflows/healthchecks_hangfire_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_ibmmq_cd_preview.yml b/.github/workflows/healthchecks_ibmmq_cd_preview.yml index b3cc103aa7..6cb5fdccaa 100644 --- a/.github/workflows/healthchecks_ibmmq_cd_preview.yml +++ b/.github/workflows/healthchecks_ibmmq_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_influxdb_cd_preview.yml b/.github/workflows/healthchecks_influxdb_cd_preview.yml index e6d6147b5e..c27da041cc 100644 --- a/.github/workflows/healthchecks_influxdb_cd_preview.yml +++ b/.github/workflows/healthchecks_influxdb_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_kafka_cd_preview.yml b/.github/workflows/healthchecks_kafka_cd_preview.yml index e06ed3a282..d35f86c36a 100644 --- a/.github/workflows/healthchecks_kafka_cd_preview.yml +++ b/.github/workflows/healthchecks_kafka_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_kubernetes_cd_preview.yml b/.github/workflows/healthchecks_kubernetes_cd_preview.yml index 6b2dd63d06..ba2f961d4e 100644 --- a/.github/workflows/healthchecks_kubernetes_cd_preview.yml +++ b/.github/workflows/healthchecks_kubernetes_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_mongodb_cd_preview.yml b/.github/workflows/healthchecks_mongodb_cd_preview.yml index 7ab78b2a0f..925bac7f85 100644 --- a/.github/workflows/healthchecks_mongodb_cd_preview.yml +++ b/.github/workflows/healthchecks_mongodb_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_mysql_cd_preview.yml b/.github/workflows/healthchecks_mysql_cd_preview.yml index 327e4b9d0b..28706e09e4 100644 --- a/.github/workflows/healthchecks_mysql_cd_preview.yml +++ b/.github/workflows/healthchecks_mysql_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_nats_cd_preview.yml b/.github/workflows/healthchecks_nats_cd_preview.yml index e641076315..e6216d3391 100644 --- a/.github/workflows/healthchecks_nats_cd_preview.yml +++ b/.github/workflows/healthchecks_nats_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_network_cd_preview.yml b/.github/workflows/healthchecks_network_cd_preview.yml index 730b6d3c26..b92077a0b2 100644 --- a/.github/workflows/healthchecks_network_cd_preview.yml +++ b/.github/workflows/healthchecks_network_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_npgsql_cd_preview.yml b/.github/workflows/healthchecks_npgsql_cd_preview.yml index 992e06adca..9d338fadee 100644 --- a/.github/workflows/healthchecks_npgsql_cd_preview.yml +++ b/.github/workflows/healthchecks_npgsql_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_openidconnectserver_cd_preview.yml b/.github/workflows/healthchecks_openidconnectserver_cd_preview.yml index 1bb264e680..1ce0002b01 100644 --- a/.github/workflows/healthchecks_openidconnectserver_cd_preview.yml +++ b/.github/workflows/healthchecks_openidconnectserver_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_oracle_cd_preview.yml b/.github/workflows/healthchecks_oracle_cd_preview.yml index 138202f3f0..11accc50ea 100644 --- a/.github/workflows/healthchecks_oracle_cd_preview.yml +++ b/.github/workflows/healthchecks_oracle_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_prometheus_metrics_cd_preview.yml b/.github/workflows/healthchecks_prometheus_metrics_cd_preview.yml index d4e2df3aa1..1c8f57331a 100644 --- a/.github/workflows/healthchecks_prometheus_metrics_cd_preview.yml +++ b/.github/workflows/healthchecks_prometheus_metrics_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_publisher_applicationinsights_cd_preview.yml b/.github/workflows/healthchecks_publisher_applicationinsights_cd_preview.yml index a23370ff9c..33a6f42c10 100644 --- a/.github/workflows/healthchecks_publisher_applicationinsights_cd_preview.yml +++ b/.github/workflows/healthchecks_publisher_applicationinsights_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_publisher_cloudwatch_cd_preview.yml b/.github/workflows/healthchecks_publisher_cloudwatch_cd_preview.yml index 4a506f56fc..ea9a1980c9 100644 --- a/.github/workflows/healthchecks_publisher_cloudwatch_cd_preview.yml +++ b/.github/workflows/healthchecks_publisher_cloudwatch_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_publisher_datadog_cd_preview.yml b/.github/workflows/healthchecks_publisher_datadog_cd_preview.yml index 84180731ac..3c92b677bf 100644 --- a/.github/workflows/healthchecks_publisher_datadog_cd_preview.yml +++ b/.github/workflows/healthchecks_publisher_datadog_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_publisher_prometheus_cd_preview.yml b/.github/workflows/healthchecks_publisher_prometheus_cd_preview.yml index b5a6593277..1c26a1c48c 100644 --- a/.github/workflows/healthchecks_publisher_prometheus_cd_preview.yml +++ b/.github/workflows/healthchecks_publisher_prometheus_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_publisher_seq_cd_preview.yml b/.github/workflows/healthchecks_publisher_seq_cd_preview.yml index 42ef47d6c2..ebb04a150d 100644 --- a/.github/workflows/healthchecks_publisher_seq_cd_preview.yml +++ b/.github/workflows/healthchecks_publisher_seq_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_rabbitmq_cd_preview.yml b/.github/workflows/healthchecks_rabbitmq_cd_preview.yml index f0bd674598..0e44fec46a 100644 --- a/.github/workflows/healthchecks_rabbitmq_cd_preview.yml +++ b/.github/workflows/healthchecks_rabbitmq_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_ravendb_cd_preview.yml b/.github/workflows/healthchecks_ravendb_cd_preview.yml index 599ea05057..81189460cf 100644 --- a/.github/workflows/healthchecks_ravendb_cd_preview.yml +++ b/.github/workflows/healthchecks_ravendb_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_redis_cd_preview.yml b/.github/workflows/healthchecks_redis_cd_preview.yml index a55669695d..9a7036e1d6 100644 --- a/.github/workflows/healthchecks_redis_cd_preview.yml +++ b/.github/workflows/healthchecks_redis_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_sendgrid_cd_preview.yml b/.github/workflows/healthchecks_sendgrid_cd_preview.yml index 17ce19822c..a353a23788 100644 --- a/.github/workflows/healthchecks_sendgrid_cd_preview.yml +++ b/.github/workflows/healthchecks_sendgrid_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_signalr_cd_preview.yml b/.github/workflows/healthchecks_signalr_cd_preview.yml index dcded62dca..b4482c396e 100644 --- a/.github/workflows/healthchecks_signalr_cd_preview.yml +++ b/.github/workflows/healthchecks_signalr_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_solr_cd_preview.yml b/.github/workflows/healthchecks_solr_cd_preview.yml index 5c894a6cdf..4ca76eea05 100644 --- a/.github/workflows/healthchecks_solr_cd_preview.yml +++ b/.github/workflows/healthchecks_solr_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_sqlite_cd_preview.yml b/.github/workflows/healthchecks_sqlite_cd_preview.yml index a9e31115f0..699f98145f 100644 --- a/.github/workflows/healthchecks_sqlite_cd_preview.yml +++ b/.github/workflows/healthchecks_sqlite_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_sqlserver_cd_preview.yml b/.github/workflows/healthchecks_sqlserver_cd_preview.yml index 1f0df88363..1dc4450265 100644 --- a/.github/workflows/healthchecks_sqlserver_cd_preview.yml +++ b/.github/workflows/healthchecks_sqlserver_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_system_cd_preview.yml b/.github/workflows/healthchecks_system_cd_preview.yml index 1715e2c8e7..c532d99557 100644 --- a/.github/workflows/healthchecks_system_cd_preview.yml +++ b/.github/workflows/healthchecks_system_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release diff --git a/.github/workflows/healthchecks_uris_cd_preview.yml b/.github/workflows/healthchecks_uris_cd_preview.yml index 75c98a7cda..e9232c9b12 100644 --- a/.github/workflows/healthchecks_uris_cd_preview.yml +++ b/.github/workflows/healthchecks_uris_cd_preview.yml @@ -8,7 +8,7 @@ on: jobs: build: - uses: ./.github/workflows/reusable_cd_workflow.yml + uses: ./.github/workflows/reusable_cd_preview_workflow.yml secrets: inherit with: BUILD_CONFIG: Release From b5ad22406c1f2222efa45c907de126f77f38816b Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 14:53:33 +0200 Subject: [PATCH 20/22] generate strong name key and sign the assemblies --- Directory.Build.props | 7 ++++++- build/strongNameKey.snk | Bin 0 -> 596 bytes .../HealthChecks.ArangoDb.csproj | 1 + .../HealthChecks.EventStore.gRPC.csproj | 1 + .../HealthChecks.EventStore.csproj | 1 + .../HealthChecks.Hangfire.csproj | 1 + .../HealthChecks.Kubernetes.csproj | 1 + .../HealthChecks.MongoDb.csproj | 1 + .../HealthChecks.Network.csproj | 1 + .../HealthChecks.OpenIdConnectServer.csproj | 1 + ...lthChecks.Publisher.ApplicationInsights.csproj | 1 + src/HealthChecks.Solr/HealthChecks.Solr.csproj | 1 + .../HealthChecks.UI.K8s.Operator.csproj | 1 + src/HealthChecks.UI/HealthChecks.UI.csproj | 1 + 14 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 build/strongNameKey.snk diff --git a/Directory.Build.props b/Directory.Build.props index b0a60075d5..bf184fca61 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -33,7 +33,12 @@ $(WarningsNotAsErrors);IDE0053;IDE0060 - + + $(MSBuildThisFileDirectory)build/strongNameKey.snk + true + + + diff --git a/build/strongNameKey.snk b/build/strongNameKey.snk new file mode 100644 index 0000000000000000000000000000000000000000..619a09e17d4c4c6c0531f02c1b3e79b5de2b9752 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50097RA@R2t2m)(iIeR;5;km?ENYaUb_Kd#@vKfDW6y!X-5(67yrbsE$v{E8BsV?R$=;El z%K3c2EeYEQT!{xb;cXQ<9E_{WO_+Gqt^VYk!R zxV@TUMkO*;{qoQ;2jrq18t>^1L8bw2&r+Gn9vegpZ)l}1XvFGOhjLD7?hGyp^G12_ zHGrMeeF%);N!+w{v>2Y$vA`n)lee-3aU?r^P$ZUy?^Ut(692}Ww?{cwsoEs9Ur~xS z9$Ph(XV$w;D(bO<@8j5nRdIu6%` zH-2axk}s`CBy1vGZ%hWQJs=fk53Y-f=v*vqD%@$%N3ojwgl4p4UNAJk#8v?lClJuB zT($YLrzJem@yx1hAc`E8`t0tTX9Y<{guMtvBkec~<40HqI~>3H#JCqsKA-yqW?aJ` zS@HHel9tVZ9}Epg>72vyYcK&q?{~ctCpMl!$`47@(m@b?U&7dardRFYd-!3nd@sO2 z44{S$(PackageTags);ArangoDb HealthChecks.ArangoDb is the health check package for ArangoDb. $(HealthCheckArangoDb) + false diff --git a/src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj b/src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj index ef153a4c54..67eed20780 100644 --- a/src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj +++ b/src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj @@ -5,6 +5,7 @@ $(PackageTags);EventStore;gRPC HealthChecks.EventStore.gRPC is the health check package for EventStore, using the gRPC client. $(HealthCheckEventStoregRPC) + false diff --git a/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj b/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj index 8d7c87d85f..3f0da896de 100644 --- a/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj +++ b/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj @@ -5,6 +5,7 @@ $(PackageTags);EventStore HealthChecks.EventStore is the health check package for EventStore, using the TCP Client. $(HealthCheckEventStore) + false diff --git a/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj b/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj index bcdb03bed8..ca5fb6130c 100644 --- a/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj +++ b/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj @@ -5,6 +5,7 @@ $(PackageTags);Hangfire HealthChecks.Hangfire is the health check package for Hangfire. $(HealthCheckHangfire) + false diff --git a/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj b/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj index 600594d671..020a7ac5bf 100644 --- a/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj +++ b/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj @@ -5,6 +5,7 @@ $(PackageTags);Kubernetes;k8s;Cluster HealthChecks.HealthChecks is the health check package for Kubernetes clusters. $(HealthCheckKubernetes) + false diff --git a/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj b/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj index 060dc070ce..8736751539 100644 --- a/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj +++ b/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj @@ -5,6 +5,7 @@ $(PackageTags);MongoDb HealthChecks.MongoDb is the health check package for MongoDb. $(HealthCheckMongoDB) + false diff --git a/src/HealthChecks.Network/HealthChecks.Network.csproj b/src/HealthChecks.Network/HealthChecks.Network.csproj index 938c47d8ff..b91e89906f 100644 --- a/src/HealthChecks.Network/HealthChecks.Network.csproj +++ b/src/HealthChecks.Network/HealthChecks.Network.csproj @@ -5,6 +5,7 @@ $(PackageTags);Network;Sftp;Ftp;Tcp;DNS HealthChecks.Network is the health check package for network services. $(HealthCheckNetwork) + false diff --git a/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj b/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj index 019d0d74c5..29ab5aae9e 100644 --- a/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj +++ b/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj @@ -6,6 +6,7 @@ HealthChecks.OpenIdConnectServer is the health check package for OpenIdConnect servers $(HealthCheckOpenIdConnectServer) HealthChecks.IdSvr + false diff --git a/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj b/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj index 6076eb28e7..d09f6706a6 100644 --- a/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj +++ b/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj @@ -5,6 +5,7 @@ $(PackageTags);Publisher;Application Insights HealthChecks.Publisher.ApplicationInsights is the health check publisher for Application Insights. $(HealthCheckPublisherAppplicationInsights) + false diff --git a/src/HealthChecks.Solr/HealthChecks.Solr.csproj b/src/HealthChecks.Solr/HealthChecks.Solr.csproj index a6938416b8..0ac8082c46 100644 --- a/src/HealthChecks.Solr/HealthChecks.Solr.csproj +++ b/src/HealthChecks.Solr/HealthChecks.Solr.csproj @@ -5,6 +5,7 @@ $(PackageTags);solr HealthChecks.solr is the health check package for solr. $(HealthCheckSolr) + false diff --git a/src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj b/src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj index 6348d8f3e9..be3e48d2db 100644 --- a/src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj +++ b/src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj @@ -7,6 +7,7 @@ ..\.. $(HealthChecksUIK8sOperator) $(NoWarn);RCS1090 + false diff --git a/src/HealthChecks.UI/HealthChecks.UI.csproj b/src/HealthChecks.UI/HealthChecks.UI.csproj index 9b4c88479c..3689d2ce8e 100644 --- a/src/HealthChecks.UI/HealthChecks.UI.csproj +++ b/src/HealthChecks.UI/HealthChecks.UI.csproj @@ -7,6 +7,7 @@ $(HealthCheckUI) True $(WarningsNotAsErrors);RCS1090 + false From d87820f02b76bd919aea2a25ab02ddf44f44f430 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 15:49:14 +0200 Subject: [PATCH 21/22] build fixes --- .github/workflows/healthchecks_aws_s3_ci.yml | 2 +- .github/workflows/healthchecks_aws_sns_ci.yml | 2 +- .github/workflows/healthchecks_aws_sqs_ci.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/healthchecks_aws_s3_ci.yml b/.github/workflows/healthchecks_aws_s3_ci.yml index c43a396c75..54b93fbef9 100644 --- a/.github/workflows/healthchecks_aws_s3_ci.yml +++ b/.github/workflows/healthchecks_aws_s3_ci.yml @@ -23,7 +23,7 @@ on: - test/HealthChecks.Aws.S3.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_s3_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets diff --git a/.github/workflows/healthchecks_aws_sns_ci.yml b/.github/workflows/healthchecks_aws_sns_ci.yml index 4950db24e5..84a2cb63c1 100644 --- a/.github/workflows/healthchecks_aws_sns_ci.yml +++ b/.github/workflows/healthchecks_aws_sns_ci.yml @@ -23,7 +23,7 @@ on: - test/HealthChecks.Aws.Sns.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_sns_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets diff --git a/.github/workflows/healthchecks_aws_sqs_ci.yml b/.github/workflows/healthchecks_aws_sqs_ci.yml index adcc77664b..a7af3c4dd4 100644 --- a/.github/workflows/healthchecks_aws_sqs_ci.yml +++ b/.github/workflows/healthchecks_aws_sqs_ci.yml @@ -23,7 +23,7 @@ on: - test/HealthChecks.Aws.Sqs.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_aws_sqs_ci.yml - - .github/workflows/reusable_ci_workflow.yml + - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets From ee18893c10dd5f7e21ab88858a7fdb5fcd01cb2e Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Thu, 21 Sep 2023 10:02:29 +0200 Subject: [PATCH 22/22] disable warning produced by Microsoft.Azure.DocumentDB.Core NO WARNING! --- src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj b/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj index 9bc4543fd3..f12cd4f625 100644 --- a/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj +++ b/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj @@ -5,6 +5,7 @@ $(PackageTags);Azure;DocumentDb HealthChecks.DocumentDb is the health check package for Azure DocumentDb. $(HealthCheckDocumentDb) + $(NoWarn);NETSDK1206