Change localhost to host.internal in ci.yml
CI / backend (push) Failing after 6m13s
CI / frontend (push) Failing after 1m28s

This commit is contained in:
voltsrage
2026-08-05 18:21:07 +08:00
parent 2a3ef62a7d
commit b8ee572194
+8 -8
View File
@@ -54,17 +54,17 @@ jobs:
- name: Test
env:
# Defaults match docker-compose.yml published ports; fixtures fall back to these anyway.
ConnectionStrings__DefaultConnection: "Host=localhost;Port=5436;Database=vigilcare_test;Username=postgres;Password=password"
ConnectionStrings__GatewayDb: "Host=localhost;Port=5437;Database=vigilcare_ward_test;Username=postgres;Password=password"
Redis__ConnectionString: "localhost:6382,defaultDatabase=1,allowAdmin=true"
Gateway__Redis__ConnectionString: "localhost:6383,defaultDatabase=2,allowAdmin=true"
RabbitMq__Host: "localhost"
ConnectionStrings__DefaultConnection: "Host=host.docker.internal;Port=5436;Database=vigilcare_test;Username=postgres;Password=password"
ConnectionStrings__GatewayDb: "Host=host.docker.internal;Port=5437;Database=vigilcare_ward_test;Username=postgres;Password=password"
Redis__ConnectionString: "host.docker.internal:6382,defaultDatabase=1,allowAdmin=true"
Gateway__Redis__ConnectionString: "host.docker.internal:6383,defaultDatabase=2,allowAdmin=true"
RabbitMq__Host: "host.docker.internal"
RabbitMq__Port: "5674"
Gateway__RabbitMq__Port: "5675"
Kafka__BootstrapServers: "localhost:9092"
Kafka__BootstrapServers: "host.docker.internal:9092"
Kafka__ReplicationFactor: "1"
Elasticsearch__Uri: "http://localhost:9200"
Minio__Endpoint: "localhost:9005"
Elasticsearch__Uri: "http://host.docker.internal:9200"
Minio__Endpoint: "host.docker.internal:9005"
run: |
dotnet test VigilCareClinical.sln -c Release --no-build \
--logger "trx;LogFileName=test-results.trx" \