Align CI/CD with shared infra/ci-workflows and drop compose-based CI.
Replace hand-rolled jobs with @v1 callers, capped bake/migrate CD, and remove the docker-compose.ci.yml bridge workaround.
This commit is contained in:
@@ -10,12 +10,10 @@ public class ApiFixture : WebApplicationFactory<Program>, IAsyncLifetime
|
||||
// Override configuration to point at a test database — never run tests against
|
||||
// the development database; a botched rollback could corrupt seed data.
|
||||
//
|
||||
// Defaults assume Postgres/Redis are reachable on the host's loopback address
|
||||
// (e.g. `docker compose up -d postgres redis` on a dev machine). CI runners that
|
||||
// execute the test step inside its own job container (act_runner's default docker
|
||||
// executor) can't reach ports published on the Docker *host* via "localhost" —
|
||||
// set CONNECTIONSTRINGS__DEFAULTCONNECTION / REDIS__CONNECTIONSTRING (e.g. to
|
||||
// host.docker.internal) in that environment to override.
|
||||
// Defaults assume Postgres/Redis on loopback (local `docker compose up -d
|
||||
// postgres redis`). CI (infra/ci-workflows dotnet8-ci) sets
|
||||
// CONNECTIONSTRINGS__DEFAULTCONNECTION / REDIS__CONNECTIONSTRING to the
|
||||
// service-container DNS names (Host=postgres, redis:6379).
|
||||
protected override void ConfigureWebHost(IWebHostBuilder builder)
|
||||
{
|
||||
builder.UseEnvironment("Testing");
|
||||
|
||||
Reference in New Issue
Block a user