From ba0bf77b425e05c49ab7005b9f458fd1d8fdb833 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Thu, 23 Nov 2023 16:19:14 +0100 Subject: [PATCH] update to net8.0-rc1 (#2044) * update one project to net8.0 * update all System.* and Microsoft.Extensions* dependencies to 8.0 * ConfigureHttpMessageHandlerBuilder has been obsoleted, use ConfigureAdditionalHttpMessageHandlers * use full target framework moniker names * add net8.0 to all test projects, move the setting to one file so it's easier to change in the future * add net8.0 to all projects that required it to fix the build, replace net5.0 (out of support) with net6.0 (oldest supported) * update all healthchecks_*_cd.yml files: use reusable worklflow that targets net8.0 * update all healthchecks_*_cd_preview.yml files: use reusable worklflow that targets net8.0 * update all healthchecks_*_ci.yml files: use reusable worklflow that targets net8.0 * manually update two complex ci files that would not benefit from reusable worklfow * remove whitespace from the end of the file name and update it too * update all versions to 8.0 * generate strong name key and sign the assemblies * disable warning produced by Microsoft.Azure.DocumentDB.Core NO WARNING! --- .../healthchecks_applicationstatus_cd.yml | 23 +-- ...lthchecks_applicationstatus_cd_preview.yml | 25 +--- .../healthchecks_applicationstatus_ci.yml | 43 +----- .../workflows/healthchecks_arangodb_cd.yml | 23 +-- .../healthchecks_arangodb_cd_preview.yml | 25 +--- .../workflows/healthchecks_arangodb_ci.yml | 1 + .github/workflows/healthchecks_aws_s3_cd.yml | 23 +-- .../healthchecks_aws_s3_cd_preview.yml | 25 +--- .github/workflows/healthchecks_aws_s3_ci.yml | 43 +----- .../healthchecks_aws_secretsmanager_cd.yml | 23 +-- ...thchecks_aws_secretsmanager_cd_preview.yml | 25 +--- .../healthchecks_aws_secretsmanager_ci.yml | 48 ++----- .github/workflows/healthchecks_aws_sns_cd.yml | 23 +-- .../healthchecks_aws_sns_cd_preview.yml | 25 +--- .github/workflows/healthchecks_aws_sns_ci.yml | 43 +----- .github/workflows/healthchecks_aws_sqs_cd.yml | 23 +-- .../healthchecks_aws_sqs_cd_preview.yml | 25 +--- .github/workflows/healthchecks_aws_sqs_ci.yml | 43 +----- .../healthchecks_aws_systemsmanager_cd.yml | 23 +-- ...thchecks_aws_systemsmanager_cd_preview.yml | 25 +--- .../healthchecks_aws_systemsmanager_ci.yml | 47 ++---- .../healthchecks_azure_digitaltwin_cd.yml | 23 +-- ...lthchecks_azure_digitaltwin_cd_preview.yml | 25 +--- .../healthchecks_azure_digitaltwin_ci.yml | 43 +----- .../healthchecks_azure_iothub_cd .yml | 29 ---- .../healthchecks_azure_iothub_cd.yml | 16 +++ .../healthchecks_azure_iothub_cd_preview.yml | 25 +--- .../healthchecks_azure_iothub_ci.yml | 43 +----- ...althchecks_azureapplicationinsights_cd.yml | 23 +-- ...ks_azureapplicationinsights_cd_preview.yml | 25 +--- ...althchecks_azureapplicationinsights_ci.yml | 43 +----- ...hecks_azurekeyvault_secrets_cd_preview.yml | 2 +- .../workflows/healthchecks_azuresearch_cd.yml | 23 +-- .../healthchecks_azuresearch_cd_preview.yml | 25 +--- .../workflows/healthchecks_azuresearch_ci.yml | 43 +----- .../healthchecks_azureservicebus_cd.yml | 23 +-- ...ealthchecks_azureservicebus_cd_preview.yml | 25 +--- .../healthchecks_azureservicebus_ci.yml | 43 +----- .github/workflows/healthchecks_consul_cd.yml | 23 +-- .../healthchecks_consul_cd_preview.yml | 25 +--- .github/workflows/healthchecks_consul_ci.yml | 1 + .github/workflows/healthchecks_dapr_cd.yml | 23 +-- .../healthchecks_dapr_cd_preview.yml | 25 +--- .github/workflows/healthchecks_dapr_ci.yml | 43 +----- .../workflows/healthchecks_documentdb_cd.yml | 23 +-- .../healthchecks_documentdb_cd_preview.yml | 25 +--- .../workflows/healthchecks_documentdb_ci.yml | 43 +----- .../workflows/healthchecks_dynamodb_cd.yml | 23 +-- .../healthchecks_dynamodb_cd_preview.yml | 25 +--- .../workflows/healthchecks_dynamodb_ci.yml | 43 +----- .../healthchecks_elasticsearch_cd.yml | 23 +-- .../healthchecks_elasticsearch_cd_preview.yml | 25 +--- .../healthchecks_elasticsearch_ci.yml | 1 + .../workflows/healthchecks_eventstore_cd.yml | 23 +-- .../healthchecks_eventstore_cd_preview.yml | 25 +--- .../workflows/healthchecks_eventstore_ci.yml | 1 + .../healthchecks_eventstore_grpc_cd.yml | 23 +-- ...ealthchecks_eventstore_grpc_cd_preview.yml | 25 +--- .../healthchecks_eventstore_grpc_ci.yml | 1 + .../healthchecks_gcp_cloudfirestore_cd.yml | 23 +-- ...thchecks_gcp_cloudfirestore_cd_preview.yml | 25 +--- .../healthchecks_gcp_cloudfirestore_ci.yml | 43 +----- .github/workflows/healthchecks_gremlin_cd.yml | 23 +-- .../healthchecks_gremlin_cd_preview.yml | 25 +--- .github/workflows/healthchecks_gremlin_ci.yml | 1 + .../workflows/healthchecks_hangfire_cd.yml | 23 +-- .../healthchecks_hangfire_cd_preview.yml | 25 +--- .../workflows/healthchecks_hangfire_ci.yml | 43 +----- .github/workflows/healthchecks_ibmmq_cd.yml | 23 +-- .../healthchecks_ibmmq_cd_preview.yml | 25 +--- .github/workflows/healthchecks_ibmmq_ci.yml | 1 + .../workflows/healthchecks_influxdb_cd.yml | 24 +--- .../healthchecks_influxdb_cd_preview.yml | 26 +--- .../workflows/healthchecks_influxdb_ci.yml | 1 + .github/workflows/healthchecks_kafka_cd.yml | 23 +-- .../healthchecks_kafka_cd_preview.yml | 25 +--- .github/workflows/healthchecks_kafka_ci.yml | 1 + .../workflows/healthchecks_kubernetes_cd.yml | 23 +-- .../healthchecks_kubernetes_cd_preview.yml | 25 +--- .../workflows/healthchecks_kubernetes_ci.yml | 43 +----- .github/workflows/healthchecks_mongodb_cd.yml | 23 +-- .../healthchecks_mongodb_cd_preview.yml | 25 +--- .github/workflows/healthchecks_mongodb_ci.yml | 1 + .github/workflows/healthchecks_mysql_cd.yml | 23 +-- .../healthchecks_mysql_cd_preview.yml | 25 +--- .github/workflows/healthchecks_mysql_ci.yml | 1 + .github/workflows/healthchecks_nats_cd.yml | 23 +-- .../healthchecks_nats_cd_preview.yml | 25 +--- .github/workflows/healthchecks_nats_ci.yml | 1 + .github/workflows/healthchecks_network_cd.yml | 23 +-- .../healthchecks_network_cd_preview.yml | 25 +--- .github/workflows/healthchecks_network_ci.yml | 1 + .github/workflows/healthchecks_npgsql_cd.yml | 23 +-- .../healthchecks_npgsql_cd_preview.yml | 25 +--- .github/workflows/healthchecks_npgsql_ci.yml | 1 + .../healthchecks_openidconnectserver_cd.yml | 23 +-- ...hchecks_openidconnectserver_cd_preview.yml | 25 +--- .../healthchecks_openidconnectserver_ci.yml | 1 + .github/workflows/healthchecks_oracle_cd.yml | 23 +-- .../healthchecks_oracle_cd_preview.yml | 25 +--- .github/workflows/healthchecks_oracle_ci.yml | 1 + .../healthchecks_prometheus_metrics_cd.yml | 23 +-- ...thchecks_prometheus_metrics_cd_preview.yml | 25 +--- .../healthchecks_prometheus_metrics_ci.yml | 43 +----- ...hecks_publisher_applicationinsights_cd.yml | 23 +-- ...blisher_applicationinsights_cd_preview.yml | 25 +--- ...hecks_publisher_applicationinsights_ci.yml | 43 +----- .../healthchecks_publisher_cloudwatch_cd.yml | 23 +-- ...checks_publisher_cloudwatch_cd_preview.yml | 25 +--- .../healthchecks_publisher_cloudwatch_ci.yml | 1 + .../healthchecks_publisher_datadog_cd.yml | 23 +-- ...lthchecks_publisher_datadog_cd_preview.yml | 25 +--- .../healthchecks_publisher_datadog_ci.yml | 43 +----- .../healthchecks_publisher_prometheus_cd.yml | 23 +-- ...checks_publisher_prometheus_cd_preview.yml | 25 +--- .../healthchecks_publisher_prometheus_ci.yml | 43 +----- .../healthchecks_publisher_seq_cd.yml | 23 +-- .../healthchecks_publisher_seq_cd_preview.yml | 25 +--- .../healthchecks_publisher_seq_ci.yml | 43 +----- .../workflows/healthchecks_rabbitmq_cd.yml | 23 +-- .../healthchecks_rabbitmq_cd_preview.yml | 25 +--- .../workflows/healthchecks_rabbitmq_ci.yml | 1 + .github/workflows/healthchecks_ravendb_cd.yml | 23 +-- .../healthchecks_ravendb_cd_preview.yml | 25 +--- .github/workflows/healthchecks_ravendb_ci.yml | 1 + .github/workflows/healthchecks_redis_cd.yml | 23 +-- .../healthchecks_redis_cd_preview.yml | 25 +--- .github/workflows/healthchecks_redis_ci.yml | 1 + .../workflows/healthchecks_sendgrid_cd.yml | 23 +-- .../healthchecks_sendgrid_cd_preview.yml | 25 +--- .../workflows/healthchecks_sendgrid_ci.yml | 43 +----- .github/workflows/healthchecks_signalr_cd.yml | 23 +-- .../healthchecks_signalr_cd_preview.yml | 25 +--- .github/workflows/healthchecks_signalr_ci.yml | 43 +----- .github/workflows/healthchecks_solr_cd.yml | 23 +-- .../healthchecks_solr_cd_preview.yml | 25 +--- .github/workflows/healthchecks_solr_ci.yml | 1 + .github/workflows/healthchecks_sqlite_cd.yml | 23 +-- .../healthchecks_sqlite_cd_preview.yml | 25 +--- .github/workflows/healthchecks_sqlite_ci.yml | 43 +----- .../workflows/healthchecks_sqlserver_cd.yml | 23 +-- .../healthchecks_sqlserver_cd_preview.yml | 25 +--- .../workflows/healthchecks_sqlserver_ci.yml | 1 + .github/workflows/healthchecks_system_cd.yml | 23 +-- .../healthchecks_system_cd_preview.yml | 25 +--- .github/workflows/healthchecks_system_ci.yml | 43 +----- .github/workflows/healthchecks_ui_cd.yml | 1 + .../workflows/healthchecks_ui_cd_preview.yml | 1 + .github/workflows/healthchecks_ui_ci.yml | 1 + .github/workflows/healthchecks_uris_cd.yml | 23 +-- .../healthchecks_uris_cd_preview.yml | 25 +--- .github/workflows/healthchecks_uris_ci.yml | 43 +----- .../reusable_cd_preview_workflow.yml | 1 + .github/workflows/reusable_cd_workflow.yml | 1 + .github/workflows/reusable_ci_workflow.yml | 1 + Directory.Build.props | 13 +- build/strongNameKey.snk | Bin 0 -> 596 bytes build/versions.props | 134 +++++++++--------- .../HealthChecks.UIAndApi.csproj | 2 +- .../HealthChecks.UIAndApiCustomization.csproj | 2 +- .../HealthChecks.ApplicationStatus.csproj | 4 +- .../HealthChecks.ArangoDb.csproj | 3 +- .../HealthChecks.Aws.S3.csproj | 2 +- .../HealthChecks.Aws.SecretsManager.csproj | 2 +- .../HealthChecks.Aws.Sns.csproj | 2 +- .../HealthChecks.Aws.Sqs.csproj | 2 +- .../HealthChecks.Aws.SystemsManager.csproj | 2 +- .../HealthChecks.Azure.Data.Tables.csproj | 2 +- .../HealthChecks.Azure.IoTHub.csproj | 2 +- ...HealthChecks.Azure.KeyVault.Secrets.csproj | 2 +- ...lthChecks.Azure.Messaging.EventHubs.csproj | 2 +- .../HealthChecks.Azure.Storage.Blobs.csproj | 2 +- ...thChecks.Azure.Storage.Files.Shares.csproj | 2 +- .../HealthChecks.Azure.Storage.Queues.csproj | 2 +- ...althChecks.AzureApplicationInsights.csproj | 4 +- .../HealthChecks.AzureDigitalTwin.csproj | 2 +- .../HealthChecks.AzureKeyVault.csproj | 2 +- .../HealthChecks.AzureSearch.csproj | 2 +- .../HealthChecks.AzureServiceBus.csproj | 2 +- .../HealthChecks.Consul.csproj | 4 +- .../HealthChecks.CosmosDb.csproj | 2 +- .../HealthChecks.Dapr.csproj | 2 +- .../HealthChecks.DocumentDb.csproj | 3 +- .../HealthChecks.DynamoDb.csproj | 2 +- .../HealthChecks.Elasticsearch.csproj | 2 +- .../HealthChecks.EventStore.gRPC.csproj | 4 +- .../HealthChecks.EventStore.csproj | 3 +- .../HealthChecks.Gcp.CloudFirestore.csproj | 2 +- .../HealthChecks.Gremlin.csproj | 2 +- .../HealthChecks.Hangfire.csproj | 3 +- .../HealthChecks.IbmMQ.csproj | 2 +- .../HealthChecks.InfluxDB.csproj | 2 +- .../HealthChecks.Kafka.csproj | 2 +- .../HealthChecks.Kubernetes.csproj | 5 +- .../HealthChecks.MongoDb.csproj | 3 +- .../HealthChecks.MySql.csproj | 2 +- .../HealthChecks.Nats.csproj | 2 +- .../HealthChecks.Network.csproj | 5 +- .../HealthChecks.NpgSql.csproj | 2 +- .../HealthChecks.OpenIdConnectServer.csproj | 7 +- .../HealthChecks.Oracle.csproj | 3 +- ...hecks.Publisher.ApplicationInsights.csproj | 3 +- .../HealthChecks.Publisher.CloudWatch.csproj | 2 +- .../HealthChecks.Publisher.Datadog.csproj | 2 +- .../HealthChecks.Publisher.Prometheus.csproj | 2 +- .../HealthChecks.Publisher.Seq.csproj | 8 +- .../HealthChecks.Rabbitmq.csproj | 2 +- .../HealthChecks.RavenDB.csproj | 2 +- .../HealthChecks.Redis.csproj | 2 +- .../HealthChecks.SendGrid.csproj | 4 +- .../HealthChecks.SignalR.csproj | 2 +- .../HealthChecks.Solr.csproj | 3 +- .../HealthChecks.SqlServer.csproj | 2 +- .../HealthChecks.Sqlite.csproj | 4 +- .../HealthChecks.System.csproj | 4 +- .../HealthChecks.UI.Client.csproj | 4 +- .../HealthChecks.UI.Core.csproj | 4 +- .../HealthChecks.UI.K8s.Operator.csproj | 7 +- .../Extensions/ServiceCollectionExtensions.cs | 12 +- src/HealthChecks.UI/HealthChecks.UI.csproj | 3 +- .../HealthChecks.Uris.csproj | 6 +- ...ealthChecks.ApplicationStatus.Tests.csproj | 4 - .../HealthChecks.ArangoDb.Tests.csproj | 4 - .../HealthChecks.Aws.S3.Tests.csproj | 4 - ...althChecks.Aws.SecretsManager.Tests.csproj | 4 - .../HealthChecks.Aws.Sns.Tests.csproj | 4 - .../HealthChecks.Aws.Sqs.Tests.csproj | 4 - ...althChecks.Aws.SystemsManager.Tests.csproj | 4 - ...ealthChecks.Azure.Data.Tables.Tests.csproj | 4 - .../HealthChecks.Azure.IoTHub.Tests.csproj | 4 - ...Checks.Azure.KeyVault.Secrets.Tests.csproj | 4 - ...cks.Azure.Messaging.EventHubs.Tests.csproj | 4 - ...lthChecks.Azure.Storage.Blobs.Tests.csproj | 4 - ...ks.Azure.Storage.Files.Shares.Tests.csproj | 4 - ...thChecks.Azure.Storage.Queues.Tests.csproj | 4 - ...ecks.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 - .../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 - ...althChecks.Gcp.CloudFirestore.Tests.csproj | 4 - .../HealthChecks.Gremlin.Tests.csproj | 4 - .../HealthChecks.Hangfire.Tests.csproj | 4 - .../HealthChecks.IbmMQ.Tests.csproj | 4 - .../HealthChecks.InfluxDB.Tests.csproj | 4 - .../HealthChecks.Kafka.Tests.csproj | 4 - .../HealthChecks.Kubernetes.Tests.csproj | 4 - .../HealthChecks.MongoDb.Tests.csproj | 4 - .../HealthChecks.MySql.Tests.csproj | 4 - .../HealthChecks.Nats.Tests.csproj | 4 - .../HealthChecks.Network.Tests.csproj | 4 - .../HealthChecks.Npgsql.Tests.csproj | 4 - ...lthChecks.OpenIdConnectServer.Tests.csproj | 4 - .../HealthChecks.Oracle.Tests.csproj | 4 - ...althChecks.Prometheus.Metrics.Tests.csproj | 4 - ...Publisher.ApplicationInsights.Tests.csproj | 4 - ...thChecks.Publisher.CloudWatch.Tests.csproj | 4 - ...ealthChecks.Publisher.Datadog.Tests.csproj | 4 - ...thChecks.Publisher.Prometheus.Tests.csproj | 4 - .../HealthChecks.Publisher.Seq.Tests.csproj | 4 - .../HealthChecks.RabbitMQ.Tests.csproj | 4 - .../HealthChecks.RavenDb.Tests.csproj | 4 - .../HealthChecks.Redis.Tests.csproj | 4 - .../HealthChecks.SendGrid.Tests.csproj | 4 - .../HealthChecks.SignalR.Tests.csproj | 4 - .../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 - .../HealthChecks.UI.Tests.csproj | 1 + .../HealthChecks.Uris.Tests.csproj | 4 - 282 files changed, 951 insertions(+), 3199 deletions(-) delete mode 100644 .github/workflows/healthchecks_azure_iothub_cd .yml create mode 100644 .github/workflows/healthchecks_azure_iothub_cd.yml create mode 100644 build/strongNameKey.snk 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_applicationstatus_cd_preview.yml b/.github/workflows/healthchecks_applicationstatus_cd_preview.yml index ddda071da5..41522d539c 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_preview_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_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_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_arangodb_cd_preview.yml b/.github/workflows/healthchecks_arangodb_cd_preview.yml index 572d4583a0..b26f60574c 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_preview_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_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_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_s3_cd_preview.yml b/.github/workflows/healthchecks_aws_s3_cd_preview.yml index 24acb4174f..beaad87945 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_preview_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_s3_ci.yml b/.github/workflows/healthchecks_aws_s3_ci.yml index 65dbe41679..54b93fbef9 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_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_secretsmanager_cd_preview.yml b/.github/workflows/healthchecks_aws_secretsmanager_cd_preview.yml index 386569b035..0b74160e6e 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_preview_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_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_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_sns_cd_preview.yml b/.github/workflows/healthchecks_aws_sns_cd_preview.yml index 6c02faa41e..b579fb9628 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_preview_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_sns_ci.yml b/.github/workflows/healthchecks_aws_sns_ci.yml index 847db44968..84a2cb63c1 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_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_sqs_cd_preview.yml b/.github/workflows/healthchecks_aws_sqs_cd_preview.yml index 6ac4bc405d..e8b0e529aa 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_preview_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_sqs_ci.yml b/.github/workflows/healthchecks_aws_sqs_ci.yml index 0d3b6d508e..a7af3c4dd4 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_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_aws_systemsmanager_cd_preview.yml b/.github/workflows/healthchecks_aws_systemsmanager_cd_preview.yml index 5291778893..beabe4dc0b 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_preview_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_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_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_azure_digitaltwin_cd_preview.yml b/.github/workflows/healthchecks_azure_digitaltwin_cd_preview.yml index 0395b6a581..3db9ba50f6 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_preview_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_digitaltwin_ci.yml b/.github/workflows/healthchecks_azure_digitaltwin_ci.yml index 2cd4dae78e..3493dc6329 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_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 diff --git a/.github/workflows/healthchecks_azure_iothub_cd_preview.yml b/.github/workflows/healthchecks_azure_iothub_cd_preview.yml index 7ceb08e3bb..2a22d68cdd 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_preview_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_azure_iothub_ci.yml b/.github/workflows/healthchecks_azure_iothub_ci.yml index 68c3255e31..e35d2c339b 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_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_azureapplicationinsights_cd_preview.yml b/.github/workflows/healthchecks_azureapplicationinsights_cd_preview.yml index 214b36d0eb..3847bd03c0 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_preview_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_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_azurekeyvault_secrets_cd_preview.yml b/.github/workflows/healthchecks_azurekeyvault_secrets_cd_preview.yml index 02bba8b833..f5c4f1c2e9 100644 --- a/.github/workflows/healthchecks_azurekeyvault_secrets_cd_preview.yml +++ b/.github/workflows/healthchecks_azurekeyvault_secrets_cd_preview.yml @@ -12,6 +12,6 @@ jobs: secrets: inherit with: BUILD_CONFIG: Release - VERSION_SUFFIX_PREFIX: rc1.1 + VERSION_SUFFIX_PREFIX: rc1 PROJECT_PATH: ./src/HealthChecks.Azure.KeyVault.Secrets/HealthChecks.Azure.KeyVault.Secrets.csproj PACKAGE_NAME: AspNetCore.HealthChecks.Azure.KeyVault.Secrets \ No newline at end of file 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_azuresearch_cd_preview.yml b/.github/workflows/healthchecks_azuresearch_cd_preview.yml index 146172624d..61a5d12d92 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_preview_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_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_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_azureservicebus_cd_preview.yml b/.github/workflows/healthchecks_azureservicebus_cd_preview.yml index 3337ef3b9b..ad767a7b19 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_preview_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_azureservicebus_ci.yml b/.github/workflows/healthchecks_azureservicebus_ci.yml index 62ae5611d7..7eefa95ad9 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_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_consul_cd_preview.yml b/.github/workflows/healthchecks_consul_cd_preview.yml index 21ee1b303b..b42d9327af 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_preview_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_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_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_dapr_cd_preview.yml b/.github/workflows/healthchecks_dapr_cd_preview.yml index bb7d9d0ceb..d58cad7e1b 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_preview_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_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_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_documentdb_cd_preview.yml b/.github/workflows/healthchecks_documentdb_cd_preview.yml index c3a14d3b9a..01530f7eaf 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_preview_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_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_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_dynamodb_cd_preview.yml b/.github/workflows/healthchecks_dynamodb_cd_preview.yml index e427439c1d..b8c14af327 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_preview_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_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_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_elasticsearch_cd_preview.yml b/.github/workflows/healthchecks_elasticsearch_cd_preview.yml index 4ab29ebc3b..96ad31753a 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_preview_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_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_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_cd_preview.yml b/.github/workflows/healthchecks_eventstore_cd_preview.yml index 8ef094ab3c..2c60a201c2 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_preview_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_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_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_eventstore_grpc_cd_preview.yml b/.github/workflows/healthchecks_eventstore_grpc_cd_preview.yml index 1dfcadc909..261ee0b921 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_preview_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_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_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_gcp_cloudfirestore_cd_preview.yml b/.github/workflows/healthchecks_gcp_cloudfirestore_cd_preview.yml index b471edb562..ac9a89c933 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_preview_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_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_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_gremlin_cd_preview.yml b/.github/workflows/healthchecks_gremlin_cd_preview.yml index 6ef7c0f417..0dc5061b03 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_preview_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_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_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_hangfire_cd_preview.yml b/.github/workflows/healthchecks_hangfire_cd_preview.yml index 1f9df6a2a6..b0985d60f9 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_preview_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_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_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_ibmmq_cd_preview.yml b/.github/workflows/healthchecks_ibmmq_cd_preview.yml index 5c94f29331..6cb5fdccaa 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_preview_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_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_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_influxdb_cd_preview.yml b/.github/workflows/healthchecks_influxdb_cd_preview.yml index 1e1c134548..c27da041cc 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_preview_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_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_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_kafka_cd_preview.yml b/.github/workflows/healthchecks_kafka_cd_preview.yml index a0ca4dc14e..d35f86c36a 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_preview_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_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_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_kubernetes_cd_preview.yml b/.github/workflows/healthchecks_kubernetes_cd_preview.yml index 1082dac80e..ba2f961d4e 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_preview_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_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_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_mongodb_cd_preview.yml b/.github/workflows/healthchecks_mongodb_cd_preview.yml index e15e44ea3a..925bac7f85 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_preview_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_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_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_mysql_cd_preview.yml b/.github/workflows/healthchecks_mysql_cd_preview.yml index ff98095009..28706e09e4 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_preview_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_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_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_nats_cd_preview.yml b/.github/workflows/healthchecks_nats_cd_preview.yml index 75ff502de0..e6216d3391 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_preview_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_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_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_network_cd_preview.yml b/.github/workflows/healthchecks_network_cd_preview.yml index e78aef34ee..b92077a0b2 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_preview_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_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_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_npgsql_cd_preview.yml b/.github/workflows/healthchecks_npgsql_cd_preview.yml index bfeb257e35..9d338fadee 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_preview_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_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_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_openidconnectserver_cd_preview.yml b/.github/workflows/healthchecks_openidconnectserver_cd_preview.yml index 41fa0c8976..1ce0002b01 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_preview_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_openidconnectserver_ci.yml b/.github/workflows/healthchecks_openidconnectserver_ci.yml index 1fa50cd945..e1fcde077f 100644 --- a/.github/workflows/healthchecks_openidconnectserver_ci.yml +++ b/.github/workflows/healthchecks_openidconnectserver_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.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj && 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_oracle_cd_preview.yml b/.github/workflows/healthchecks_oracle_cd_preview.yml index 1f7817f898..11accc50ea 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_preview_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_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_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_prometheus_metrics_cd_preview.yml b/.github/workflows/healthchecks_prometheus_metrics_cd_preview.yml index d5d2ffa59d..1c8f57331a 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_preview_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_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_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_applicationinsights_cd_preview.yml b/.github/workflows/healthchecks_publisher_applicationinsights_cd_preview.yml index 60aec35aac..33a6f42c10 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_preview_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_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_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_cloudwatch_cd_preview.yml b/.github/workflows/healthchecks_publisher_cloudwatch_cd_preview.yml index 1fbd534505..ea9a1980c9 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_preview_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_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 && 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_datadog_cd_preview.yml b/.github/workflows/healthchecks_publisher_datadog_cd_preview.yml index 9924d93de0..3c92b677bf 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_preview_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_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_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_prometheus_cd_preview.yml b/.github/workflows/healthchecks_publisher_prometheus_cd_preview.yml index d774f0b494..1c26a1c48c 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_preview_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_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_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_publisher_seq_cd_preview.yml b/.github/workflows/healthchecks_publisher_seq_cd_preview.yml index 50abeddb50..ebb04a150d 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_preview_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_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_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_rabbitmq_cd_preview.yml b/.github/workflows/healthchecks_rabbitmq_cd_preview.yml index 7d0b218b12..0e44fec46a 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_preview_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_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_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_ravendb_cd_preview.yml b/.github/workflows/healthchecks_ravendb_cd_preview.yml index ac19e180b1..81189460cf 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_preview_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_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_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_redis_cd_preview.yml b/.github/workflows/healthchecks_redis_cd_preview.yml index 65a162094c..9a7036e1d6 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_preview_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_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_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_sendgrid_cd_preview.yml b/.github/workflows/healthchecks_sendgrid_cd_preview.yml index d2fcca3d4c..a353a23788 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_preview_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_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_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_signalr_cd_preview.yml b/.github/workflows/healthchecks_signalr_cd_preview.yml index 8a08884e0c..b4482c396e 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_preview_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_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_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_solr_cd_preview.yml b/.github/workflows/healthchecks_solr_cd_preview.yml index d821eff7ec..4ca76eea05 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_preview_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_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_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_sqlite_cd_preview.yml b/.github/workflows/healthchecks_sqlite_cd_preview.yml index f38fd0966c..699f98145f 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_preview_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_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_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_sqlserver_cd_preview.yml b/.github/workflows/healthchecks_sqlserver_cd_preview.yml index 1037bd369d..1dc4450265 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_preview_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_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 && 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_system_cd_preview.yml b/.github/workflows/healthchecks_system_cd_preview.yml index bf90016268..c532d99557 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_preview_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_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_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_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_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 && 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 diff --git a/.github/workflows/healthchecks_uris_cd_preview.yml b/.github/workflows/healthchecks_uris_cd_preview.yml index 344fb80adc..e9232c9b12 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_preview_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 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 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 d4b9aea0c7..9f2ba7177c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -33,19 +33,26 @@ + net6.0;net7.0;net8.0 $(NoWarn);IDE1006 $(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 - 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.1 - 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.1.0 - 7.0.0 - 7.1.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 + 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 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..9a4b3d7402 100644 --- a/src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj +++ b/src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj @@ -5,11 +5,12 @@ $(PackageTags);ArangoDb HealthChecks.ArangoDb is the health check package for ArangoDb. $(HealthCheckArangoDb) + false - + 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.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/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..f12cd4f625 100644 --- a/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj +++ b/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj @@ -5,11 +5,12 @@ $(PackageTags);Azure;DocumentDb HealthChecks.DocumentDb is the health check package for Azure DocumentDb. $(HealthCheckDocumentDb) + $(NoWarn);NETSDK1206 - + 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..67eed20780 100644 --- a/src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj +++ b/src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj @@ -5,12 +5,12 @@ $(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 902c51330b..3f0da896de 100644 --- a/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj +++ b/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj @@ -5,11 +5,12 @@ $(PackageTags);EventStore HealthChecks.EventStore is the health check package for EventStore, using the TCP Client. $(HealthCheckEventStore) + false - + 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..ca5fb6130c 100644 --- a/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj +++ b/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj @@ -5,11 +5,12 @@ $(PackageTags);Hangfire HealthChecks.Hangfire is the health check package for Hangfire. $(HealthCheckHangfire) + false - + 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..020a7ac5bf 100644 --- a/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj +++ b/src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj @@ -1,15 +1,16 @@ - net6;net7 + net6.0;net7.0 $(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 1ccfe6fd90..8736751539 100644 --- a/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj +++ b/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj @@ -5,11 +5,12 @@ $(PackageTags);MongoDb HealthChecks.MongoDb is the health check package for MongoDb. $(HealthCheckMongoDB) + false - + 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 bfcce7d924..0437a5a42d 100644 --- a/src/HealthChecks.Network/HealthChecks.Network.csproj +++ b/src/HealthChecks.Network/HealthChecks.Network.csproj @@ -1,15 +1,16 @@ - netstandard2.0;net5;net6 + 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) + false - + diff --git a/src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj b/src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj index f29c7f2da2..58a6454d2f 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..29ab5aae9e 100644 --- a/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj +++ b/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj @@ -6,12 +6,13 @@ HealthChecks.OpenIdConnectServer is the health check package for OpenIdConnect servers $(HealthCheckOpenIdConnectServer) HealthChecks.IdSvr + false - - - + + + 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..d09f6706a6 100644 --- a/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj +++ b/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj @@ -5,11 +5,12 @@ $(PackageTags);Publisher;Application Insights HealthChecks.Publisher.ApplicationInsights is the health check publisher for Application Insights. $(HealthCheckPublisherAppplicationInsights) + false - + 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..b9fb7e5932 100644 --- a/src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj +++ b/src/HealthChecks.Publisher.Seq/HealthChecks.Publisher.Seq.csproj @@ -1,16 +1,16 @@ - 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.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..0ac8082c46 100644 --- a/src/HealthChecks.Solr/HealthChecks.Solr.csproj +++ b/src/HealthChecks.Solr/HealthChecks.Solr.csproj @@ -5,10 +5,11 @@ $(PackageTags);solr HealthChecks.solr is the health check package for solr. $(HealthCheckSolr) + false - + 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..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) @@ -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 8f4babc825..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,15 +7,16 @@ ..\.. $(HealthChecksUIK8sOperator) $(NoWarn);RCS1090 + false - - + + - + 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; diff --git a/src/HealthChecks.UI/HealthChecks.UI.csproj b/src/HealthChecks.UI/HealthChecks.UI.csproj index 68ce63d59f..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 @@ -18,7 +19,7 @@ - + diff --git a/src/HealthChecks.Uris/HealthChecks.Uris.csproj b/src/HealthChecks.Uris/HealthChecks.Uris.csproj index 5ea5903a7b..34fedc2a62 100644 --- a/src/HealthChecks.Uris/HealthChecks.Uris.csproj +++ b/src/HealthChecks.Uris/HealthChecks.Uris.csproj @@ -1,15 +1,15 @@ - netstandard2.0;net5 + netstandard2.0;net6.0 $(PackageTags);Uri;Url;Uris;Urls HealthChecks.Uris is a simple health check package for Uri groups. $(HealthCheckUri) - - + + 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 dcafac26d9..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 - - 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 - -