Skip to content

Commit

Permalink
Revert "update all healthchecks_*_ci.yml files that use "services" (I…
Browse files Browse the repository at this point in the history
… am not sure whether it's going to work)"

This reverts commit 9e79cc4.
  • Loading branch information
adamsitnik committed Sep 20, 2023
1 parent 7cd1adf commit c32c2a0
Show file tree
Hide file tree
Showing 17 changed files with 612 additions and 136 deletions.
44 changes: 36 additions & 8 deletions .github/workflows/healthchecks_arangodb_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -23,22 +22,51 @@ 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
ports:
- 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
44 changes: 36 additions & 8 deletions .github/workflows/healthchecks_consul_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
44 changes: 36 additions & 8 deletions .github/workflows/healthchecks_elasticsearch_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
44 changes: 36 additions & 8 deletions .github/workflows/healthchecks_eventstore_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
44 changes: 36 additions & 8 deletions .github/workflows/healthchecks_eventstore_grpc_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
44 changes: 36 additions & 8 deletions .github/workflows/healthchecks_gremlin_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Loading

0 comments on commit c32c2a0

Please sign in to comment.