Align CI/CD with shared infra/ci-workflows and drop compose-based CI.
CI / changes (push) Successful in 1m4s
CI / backend (push) Failing after 0s
CI / frontend (push) Failing after 0s

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:
2026-10-06 19:10:58 +08:00
parent 1124c1f079
commit 5a175e3fba
12 changed files with 397 additions and 197 deletions
@@ -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");