ghostguild-org/.forgejo/workflows
Jennie Robinson Faber f05c1f6d40
Some checks failed
Test / vitest (push) Successful in 11m11s
Test / playwright (push) Failing after 10m8s
Test / visual (push) Failing after 9m2s
Test / Notify on failure (push) Successful in 2s
fix(ci): attach Mongo to the runner container's network
The Forgejo runner is itself a container (visible in 'docker ps' from
inside the job: GITEA-ACTIONS-TASK-N_WORKFLOW-Test_JOB-playwright).
'--network host' for Mongo binds to the outer Docker host's network
namespace, which the runner container can't see — that's why
mongodb://localhost:27017 from the Nuxt server returned ECONNREFUSED.

Drop --network host. Instead, after starting Mongo, look up the
runner container's own network via 'docker inspect $HOSTNAME' and
attach Mongo to it. MONGODB_URI now references the container by
name (mongodb://mongo-ci:27017/...).
2026-05-01 09:08:21 +01:00
..
test.yml fix(ci): attach Mongo to the runner container's network 2026-05-01 09:08:21 +01:00