Some of our tests depend on external services, And they can not run locally unless we manually perform some work.
We configured CI to run these external services.
For example, Milvus uses the docker compose file.
|
steps: |
|
- uses: actions/checkout@v3 |
|
- name: 'wget' |
|
run: 'wget https://github.com/milvus-io/milvus/releases/download/v2.4.6/milvus-standalone-docker-compose.yml -O docker-compose.yml' |
|
- name: 'compose' |
|
run: 'sudo docker compose up -d' |
|
- name: Setup .NET |
|
uses: actions/setup-dotnet@v4 |
Elasticsearch is configured by services in actions.
|
jobs: |
|
build: |
|
runs-on: ubuntu-latest |
|
services: |
|
elasticsearch: |
|
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2 |
|
ports: |
|
- 9300:9300 |
|
- 9201:9200 |
We should change these tests to use TestContainer like the Aspire team did.
Update
We migrate the HealthChecks.Redis tests to Testcontainer in #2345.
Let's use that PR as a sample and migrate the other tests.
Check Lists
CC @adamsitnik @eerhardt @unaizorrilla
Some of our tests depend on external services, And they can not run locally unless we manually perform some work.
We configured CI to run these external services.
For example, Milvus uses the docker compose file.
AspNetCore.Diagnostics.HealthChecks/.github/workflows/healthchecks_milvus_ci.yml
Lines 33 to 40 in 78d664e
Elasticsearch is configured by services in actions.
AspNetCore.Diagnostics.HealthChecks/.github/workflows/healthchecks_elasticsearch_ci.yml
Lines 30 to 38 in 78d664e
We should change these tests to use TestContainer like the Aspire team did.
Update
We migrate the
HealthChecks.Redistests to Testcontainer in #2345.Let's use that PR as a sample and migrate the other tests.
Check Lists
CC @adamsitnik @eerhardt @unaizorrilla