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