From 411264d94c2b495ff195acd12d71cd888ea755ea Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Tue, 9 Jun 2026 10:40:32 +0000 Subject: [PATCH] fix(ci): bind vite preview to 127.0.0.1, not localhost (CAR-1218) The act runner resolves 'localhost' to ::1 (IPv6) and the preview server does not get a reachable IPv4 socket, so wait-on times out and the 'Start preview server' step fails the lighthouse job. Bind explicitly to 127.0.0.1 (IPv4). Refs CAR-1218, CAR-1078, CAR-1334 --- .gitea/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 62c2f6f..dd8471c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -89,9 +89,12 @@ jobs: npm install -g playwright npx playwright install --with-deps chromium - name: Start preview server + # CAR-1218: bind to 127.0.0.1 (IPv4) not localhost. The act runner + # resolves 'localhost' to ::1 (IPv6) and the preview server does not + # get a reachable IPv4 socket, so wait-on times out. run: | - npm run preview & - npx wait-on http://localhost:4173/ --timeout 30000 + npx vite preview --host 127.0.0.1 --port 4173 & + npx wait-on http://127.0.0.1:4173/ --timeout 30000 - name: Run Lighthouse CI # CAR-1218: act_runner does not honor continue-on-error at the job level # (job still posts 'failure' status). Apply at the step level so the