Fix server startup: Use explicit host binding and verification for all jobs
CI Pipeline / canary (pull_request) Successful in 7s
CI Pipeline / test (20) (pull_request) Successful in 1m55s
CI Pipeline / test (18) (pull_request) Successful in 2m10s
CI Pipeline / e2e (chromium) (pull_request) Failing after 1m59s
CI Pipeline / e2e (firefox) (pull_request) Failing after 1m49s
CI Pipeline / e2e (webkit) (pull_request) Failing after 1m52s
CI Pipeline / visual-regression (pull_request) Failing after 2m17s
CI Pipeline / lint (pull_request) Has been cancelled
CI Pipeline / build (pull_request) Has been cancelled
CI Pipeline / performance (pull_request) Has been cancelled
CI Pipeline / storybook (pull_request) Has been cancelled
CI Pipeline / canary (pull_request) Successful in 7s
CI Pipeline / test (20) (pull_request) Successful in 1m55s
CI Pipeline / test (18) (pull_request) Successful in 2m10s
CI Pipeline / e2e (chromium) (pull_request) Failing after 1m59s
CI Pipeline / e2e (firefox) (pull_request) Failing after 1m49s
CI Pipeline / e2e (webkit) (pull_request) Failing after 1m52s
CI Pipeline / visual-regression (pull_request) Failing after 2m17s
CI Pipeline / lint (pull_request) Has been cancelled
CI Pipeline / build (pull_request) Has been cancelled
CI Pipeline / performance (pull_request) Has been cancelled
CI Pipeline / storybook (pull_request) Has been cancelled
This commit is contained in:
+27
-11
@@ -61,9 +61,15 @@ jobs:
|
||||
- run: npm run build
|
||||
|
||||
# start app, wait, run tests
|
||||
- run: npm run start &
|
||||
env: { CI: true }
|
||||
- run: npx wait-on http://localhost:3000
|
||||
- name: Start Next.js
|
||||
run: npm run start -- -p 3000 -H 0.0.0.0 &
|
||||
env:
|
||||
CI: true
|
||||
- name: Verify server is up
|
||||
run: |
|
||||
sleep 5
|
||||
curl -v http://127.0.0.1:3000 || exit 1
|
||||
- run: npx wait-on http://127.0.0.1:3000
|
||||
- run: npx playwright test --project=${{ matrix.browser }}
|
||||
env: { CI: true }
|
||||
|
||||
@@ -90,9 +96,15 @@ jobs:
|
||||
- run: npm ci
|
||||
- run: npx playwright install --with-deps
|
||||
- run: npm run build
|
||||
- run: npm run start &
|
||||
env: { CI: true }
|
||||
- run: npx wait-on http://localhost:3000
|
||||
- name: Start Next.js
|
||||
run: npm run start -- -p 3000 -H 0.0.0.0 &
|
||||
env:
|
||||
CI: true
|
||||
- name: Verify server is up
|
||||
run: |
|
||||
sleep 5
|
||||
curl -v http://127.0.0.1:3000 || exit 1
|
||||
- run: npx wait-on http://127.0.0.1:3000
|
||||
|
||||
# Seed snapshots on main branch only (one-time setup)
|
||||
- name: Seed snapshots (main only)
|
||||
@@ -138,12 +150,16 @@ jobs:
|
||||
- name: Build application
|
||||
run: npm run build
|
||||
|
||||
- name: Start application
|
||||
run: npm run start &
|
||||
env: { CI: true }
|
||||
|
||||
- name: Start Next.js
|
||||
run: npm run start -- -p 3000 -H 0.0.0.0 &
|
||||
env:
|
||||
CI: true
|
||||
- name: Verify server is up
|
||||
run: |
|
||||
sleep 5
|
||||
curl -v http://127.0.0.1:3000 || exit 1
|
||||
- name: Wait for application
|
||||
run: npx wait-on http://localhost:3000
|
||||
run: npx wait-on http://127.0.0.1:3000
|
||||
|
||||
- name: Run Lighthouse CI
|
||||
run: npx lhci autorun --chrome-path="$CHROME_PATH"
|
||||
|
||||
Reference in New Issue
Block a user