From c32c2a0bc17ae509b554cca3ce372eb095da87b3 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 20 Sep 2023 14:15:54 +0200 Subject: [PATCH] Revert "update all healthchecks_*_ci.yml files that use "services" (I am not sure whether it's going to work)" This reverts commit 9e79cc4f513760f328eac0f6b34c4030151dc28e. --- .../workflows/healthchecks_arangodb_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_consul_ci.yml | 44 +++++++++++++++---- .../healthchecks_elasticsearch_ci.yml | 44 +++++++++++++++---- .../workflows/healthchecks_eventstore_ci.yml | 44 +++++++++++++++---- .../healthchecks_eventstore_grpc_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_gremlin_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_ibmmq_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_kafka_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_mongodb_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_mysql_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_nats_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_npgsql_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_oracle_ci.yml | 44 +++++++++++++++---- .../workflows/healthchecks_rabbitmq_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_ravendb_ci.yml | 44 +++++++++++++++---- .github/workflows/healthchecks_redis_ci.yml | 44 +++++++++++++++---- .../workflows/healthchecks_sqlserver_ci.yml | 44 +++++++++++++++---- 17 files changed, 612 insertions(+), 136 deletions(-) diff --git a/.github/workflows/healthchecks_arangodb_ci.yml b/.github/workflows/healthchecks_arangodb_ci.yml index 462aaf4292..b813b452bd 100644 --- a/.github/workflows/healthchecks_arangodb_ci.yml +++ b/.github/workflows/healthchecks_arangodb_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.ArangoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_arangodb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.ArangoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_arangodb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: arangodb: image: arangodb/arangodb:latest @@ -36,9 +35,38 @@ jobs: - 8529:8529 env: ARANGO_ROOT_PASSWORD: strongArangoDbPassword - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj - CODECOV_FLAGS: ArangoDb + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj && + dotnet restore ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj && + dotnet build --no-restore ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.ArangoDb.Tests/HealthChecks.ArangoDb.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: ArangoDb + directory: .coverage diff --git a/.github/workflows/healthchecks_consul_ci.yml b/.github/workflows/healthchecks_consul_ci.yml index 3b2e3895b8..0622811056 100644 --- a/.github/workflows/healthchecks_consul_ci.yml +++ b/.github/workflows/healthchecks_consul_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Consul.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_consul_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,21 +22,50 @@ on: - test/HealthChecks.Consul.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_consul_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: consul: image: hashicorp/consul:latest ports: - 8500:8500 - 8600:8600 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Consul/HealthChecks.Consul.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj - CODECOV_FLAGS: Consul + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.Consul/HealthChecks.Consul.csproj && + dotnet restore ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Consul/HealthChecks.Consul.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Consul/HealthChecks.Consul.csproj && + dotnet build --no-restore ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Consul.Tests/HealthChecks.Consul.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: Consul + directory: .coverage diff --git a/.github/workflows/healthchecks_elasticsearch_ci.yml b/.github/workflows/healthchecks_elasticsearch_ci.yml index 2986a3d65f..8f158345d9 100644 --- a/.github/workflows/healthchecks_elasticsearch_ci.yml +++ b/.github/workflows/healthchecks_elasticsearch_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Elasticsearch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_elasticsearch_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,21 +22,50 @@ on: - test/HealthChecks.Elasticsearch.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_elasticsearch_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2 ports: - 9300:9300 - 9201:9200 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj - CODECOV_FLAGS: Elasticsearch + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj && + dotnet restore ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj && + dotnet build --no-restore ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Elasticsearch.Tests/HealthChecks.Elasticsearch.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: Elasticsearch + directory: .coverage diff --git a/.github/workflows/healthchecks_eventstore_ci.yml b/.github/workflows/healthchecks_eventstore_ci.yml index dc7b022729..a8cac8fea0 100644 --- a/.github/workflows/healthchecks_eventstore_ci.yml +++ b/.github/workflows/healthchecks_eventstore_ci.yml @@ -8,7 +8,6 @@ on: - test/HealthChecks.EventStore.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -22,12 +21,12 @@ on: - test/HealthChecks.EventStore.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: eventstore: image: eventstore/eventstore @@ -38,9 +37,38 @@ jobs: EVENTSTORE_INSECURE: true EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP: true EVENTSTORE_ENABLE_EXTERNAL_TCP: true - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj - CODECOV_FLAGS: EventStore + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj && + dotnet restore ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.EventStore/HealthChecks.EventStore.csproj && + dotnet build --no-restore ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.EventStore.Tests/HealthChecks.EventStore.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: EventStore + directory: .coverage diff --git a/.github/workflows/healthchecks_eventstore_grpc_ci.yml b/.github/workflows/healthchecks_eventstore_grpc_ci.yml index 52954390df..122db71de2 100644 --- a/.github/workflows/healthchecks_eventstore_grpc_ci.yml +++ b/.github/workflows/healthchecks_eventstore_grpc_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.EventStore.gRPC.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_grpc_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.EventStore.gRPC.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_eventstore_grpc_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: eventstore: image: eventstore/eventstore @@ -37,9 +36,38 @@ jobs: - "2113:2113" env: EVENTSTORE_INSECURE: true - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj - CODECOV_FLAGS: EventStore.gRPC + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj && + dotnet restore ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.EventStore.gRPC/HealthChecks.EventStore.gRPC.csproj && + dotnet build --no-restore ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.EventStore.gRPC.Tests/HealthChecks.EventStore.gRPC.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: EventStore.gRPC + directory: .coverage diff --git a/.github/workflows/healthchecks_gremlin_ci.yml b/.github/workflows/healthchecks_gremlin_ci.yml index c908112e2f..b8a8498c44 100644 --- a/.github/workflows/healthchecks_gremlin_ci.yml +++ b/.github/workflows/healthchecks_gremlin_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Gremlin.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_gremlin_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.Gremlin.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_gremlin_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: gremlin: image: tinkerpop/gremlin-server @@ -37,9 +36,38 @@ jobs: env: VIRTUAL_HOST: gremlin.docker VIRTUAL_PORT: 8182 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj - CODECOV_FLAGS: Gremlin + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj && + dotnet restore ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj && + dotnet build --no-restore ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Gremlin.Tests/HealthChecks.Gremlin.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: Gremlin + directory: .coverage diff --git a/.github/workflows/healthchecks_ibmmq_ci.yml b/.github/workflows/healthchecks_ibmmq_ci.yml index bc3e692ac0..c32c4cb740 100644 --- a/.github/workflows/healthchecks_ibmmq_ci.yml +++ b/.github/workflows/healthchecks_ibmmq_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.IbmMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ibmmq_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.IbmMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ibmmq_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: ibmmq: image: ibmcom/mq @@ -40,9 +39,38 @@ jobs: MQ_QMGR_NAME: QM1 MQ_APP_PASSWORD: 12345678 MQ_ENABLE_METRICS: true - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj - CODECOV_FLAGS: IbmMQ + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj && + dotnet restore ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj && + dotnet build --no-restore ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.IbmMQ.Tests/HealthChecks.IbmMQ.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: IbmMQ + directory: .coverage diff --git a/.github/workflows/healthchecks_kafka_ci.yml b/.github/workflows/healthchecks_kafka_ci.yml index d6f9b977ee..416abc4b5d 100644 --- a/.github/workflows/healthchecks_kafka_ci.yml +++ b/.github/workflows/healthchecks_kafka_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Kafka.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_kafka_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.Kafka.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_kafka_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: zookeeper: image: confluent/zookeeper @@ -42,9 +41,38 @@ jobs: KAFKA_ADVERTISED_HOST_NAME: localhost KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_ADVERTISED_PORT: 9092 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj - CODECOV_FLAGS: Kafka + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj && + dotnet restore ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Kafka/HealthChecks.Kafka.csproj && + dotnet build --no-restore ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Kafka.Tests/HealthChecks.Kafka.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: Kafka + directory: .coverage diff --git a/.github/workflows/healthchecks_mongodb_ci.yml b/.github/workflows/healthchecks_mongodb_ci.yml index 0eb3bf7814..f5a5defbce 100644 --- a/.github/workflows/healthchecks_mongodb_ci.yml +++ b/.github/workflows/healthchecks_mongodb_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.MongoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mongodb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,20 +22,49 @@ on: - test/HealthChecks.MongoDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mongodb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: mongo: image: mongo ports: - 27017:27017 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj - CODECOV_FLAGS: MongoDb + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj && + dotnet restore ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj && + dotnet build --no-restore ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.MongoDb.Tests/HealthChecks.MongoDb.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: MongoDb + directory: .coverage diff --git a/.github/workflows/healthchecks_mysql_ci.yml b/.github/workflows/healthchecks_mysql_ci.yml index f6fa75353b..4c45d9c4eb 100644 --- a/.github/workflows/healthchecks_mysql_ci.yml +++ b/.github/workflows/healthchecks_mysql_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.MySql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mysql_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.MySql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_mysql_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: mysql: image: mysql @@ -36,9 +35,38 @@ jobs: - 3306:3306 env: MYSQL_ROOT_PASSWORD: Password12! - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.MySql/HealthChecks.MySql.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj - CODECOV_FLAGS: MySql + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.MySql/HealthChecks.MySql.csproj && + dotnet restore ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.MySql/HealthChecks.MySql.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.MySql/HealthChecks.MySql.csproj && + dotnet build --no-restore ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.MySql.Tests/HealthChecks.MySql.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: MySql + directory: .coverage diff --git a/.github/workflows/healthchecks_nats_ci.yml b/.github/workflows/healthchecks_nats_ci.yml index 585de38928..c68e1df4f8 100644 --- a/.github/workflows/healthchecks_nats_ci.yml +++ b/.github/workflows/healthchecks_nats_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Nats.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_nats_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.Nats.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_nats_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: nats: image: nats:latest @@ -36,9 +35,38 @@ jobs: - "4222:4222" - "8222:8222" - "6222:6222" - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Nats/HealthChecks.Nats.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj - CODECOV_FLAGS: Nats + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.Nats/HealthChecks.Nats.csproj && + dotnet restore ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Nats/HealthChecks.Nats.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Nats/HealthChecks.Nats.csproj && + dotnet build --no-restore ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Nats.Tests/HealthChecks.Nats.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: Nats + directory: .coverage diff --git a/.github/workflows/healthchecks_npgsql_ci.yml b/.github/workflows/healthchecks_npgsql_ci.yml index 1e35576a91..e1c71ba3c2 100644 --- a/.github/workflows/healthchecks_npgsql_ci.yml +++ b/.github/workflows/healthchecks_npgsql_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Npgsql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_npgsql_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.Npgsql.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_npgsql_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: npgsql: image: postgres @@ -37,9 +36,38 @@ jobs: env: POSTGRES_USER: postgres POSTGRES_PASSWORD: Password12! - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj - CODECOV_FLAGS: Npgsql + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj && + dotnet restore ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj && + dotnet build --no-restore ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Npgsql.Tests/HealthChecks.Npgsql.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: Npgsql + directory: .coverage diff --git a/.github/workflows/healthchecks_oracle_ci.yml b/.github/workflows/healthchecks_oracle_ci.yml index 1b08bf4592..ae0bbabee7 100644 --- a/.github/workflows/healthchecks_oracle_ci.yml +++ b/.github/workflows/healthchecks_oracle_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Oracle.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_oracle_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.Oracle.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_oracle_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: oracle: image: gvenzl/oracle-xe:18-slim @@ -36,9 +35,38 @@ jobs: - 1521:1521 env: ORACLE_PASSWORD: oracle - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj - CODECOV_FLAGS: Oracle + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj && + dotnet restore ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Oracle/HealthChecks.Oracle.csproj && + dotnet build --no-restore ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Oracle.Tests/HealthChecks.Oracle.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: Oracle + directory: .coverage diff --git a/.github/workflows/healthchecks_rabbitmq_ci.yml b/.github/workflows/healthchecks_rabbitmq_ci.yml index 64e3f7af70..22af8036e3 100644 --- a/.github/workflows/healthchecks_rabbitmq_ci.yml +++ b/.github/workflows/healthchecks_rabbitmq_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.RabbitMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_rabbitmq_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,20 +22,49 @@ on: - test/HealthChecks.RabbitMQ.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_rabbitmq_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: rabbitmq: image: rabbitmq ports: - 5672:5672 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj - CODECOV_FLAGS: RabbitMQ + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj && + dotnet restore ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj && + dotnet build --no-restore ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.RabbitMQ.Tests/HealthChecks.RabbitMQ.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: RabbitMQ + directory: .coverage diff --git a/.github/workflows/healthchecks_ravendb_ci.yml b/.github/workflows/healthchecks_ravendb_ci.yml index f514b15f40..de30792701 100644 --- a/.github/workflows/healthchecks_ravendb_ci.yml +++ b/.github/workflows/healthchecks_ravendb_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.RavenDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ravendb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.RavenDb.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_ravendb_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: ravendb: image: ravendb/ravendb @@ -36,9 +35,38 @@ jobs: - 9030:8080 env: RAVEN_ARGS: --Setup.Mode=None - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj - CODECOV_FLAGS: RavenDb + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj && + dotnet restore ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj && + dotnet build --no-restore ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.RavenDb.Tests/HealthChecks.RavenDb.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: RavenDb + directory: .coverage diff --git a/.github/workflows/healthchecks_redis_ci.yml b/.github/workflows/healthchecks_redis_ci.yml index 374ce3f504..8d1e5e1e56 100644 --- a/.github/workflows/healthchecks_redis_ci.yml +++ b/.github/workflows/healthchecks_redis_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.Redis.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_redis_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,20 +22,49 @@ on: - test/HealthChecks.Redis.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_redis_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: redis: image: redis:alpine ports: - 6379:6379 - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.Redis/HealthChecks.Redis.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj - CODECOV_FLAGS: Redis + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.Redis/HealthChecks.Redis.csproj && + dotnet restore ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Redis/HealthChecks.Redis.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.Redis/HealthChecks.Redis.csproj && + dotnet build --no-restore ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.Redis.Tests/HealthChecks.Redis.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: Redis + directory: .coverage diff --git a/.github/workflows/healthchecks_sqlserver_ci.yml b/.github/workflows/healthchecks_sqlserver_ci.yml index 3b72691363..9f4e88ec96 100644 --- a/.github/workflows/healthchecks_sqlserver_ci.yml +++ b/.github/workflows/healthchecks_sqlserver_ci.yml @@ -9,7 +9,6 @@ on: - test/HealthChecks.SqlServer.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_sqlserver_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets tags-ignore: @@ -23,12 +22,12 @@ on: - test/HealthChecks.SqlServer.Tests/** - test/_SHARED/** - .github/workflows/healthchecks_sqlserver_ci.yml - - .github/workflows/reusable_ci_workflow.yml - Directory.Build.props - Directory.Build.targets jobs: build: + runs-on: ubuntu-latest services: sqlserver: image: mcr.microsoft.com/mssql/server @@ -37,9 +36,38 @@ jobs: env: ACCEPT_EULA: Y SA_PASSWORD: Password12! - - uses: ./.github/workflows/reusable_ci_workflow.yml - with: - PROJECT_PATH: ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj - TEST_PROJECT_PATH: ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj - CODECOV_FLAGS: SqlServer + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore + run: | + dotnet restore ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj && + dotnet restore ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj + - name: Check formatting + run: | + dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && + dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) + - name: Build + run: | + dotnet build --no-restore ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj && + dotnet build --no-restore ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj + - name: Test + run: > + dotnet test + ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj + --no-restore + --no-build + --collect "XPlat Code Coverage" + --results-directory .coverage + -- + DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + flags: SqlServer + directory: .coverage