Fix performance runner test
CI Pipeline / test (20) (pull_request) Successful in 1m58s
CI Pipeline / test (18) (pull_request) Successful in 2m8s
CI Pipeline / e2e (chromium) (pull_request) Failing after 15m39s
CI Pipeline / e2e (firefox) (pull_request) Failing after 20m26s
CI Pipeline / visual-regression (pull_request) Successful in 5m5s
CI Pipeline / performance (pull_request) Successful in 5m25s
CI Pipeline / e2e (webkit) (pull_request) Failing after 18m57s
CI Pipeline / lint (pull_request) Successful in 1m28s
CI Pipeline / storybook (pull_request) Failing after 5m46s
CI Pipeline / build (pull_request) Successful in 1m48s

This commit is contained in:
adilallo
2025-08-30 22:34:35 -06:00
parent 494fd9cca1
commit eb407e03ee
2 changed files with 23 additions and 4 deletions
+22 -3
View File
@@ -205,8 +205,7 @@ jobs:
- name: Start app (background) + healthcheck
run: |
set -euxo pipefail
export PORT="${PORT:-3000}"
export HOST="127.0.0.1"
export PORT=3010 HOST=127.0.0.1
test -d .next || { echo "❌ Missing .next build output"; exit 1; }
mkdir -p .next
nohup npm run start -- -p "$PORT" -H "$HOST" > .next/runner.log 2>&1 &
@@ -224,9 +223,29 @@ jobs:
echo "––– .next/runner.log (tail) –––"
tail -n 200 .next/runner.log || true
# ---- fixes begin here ----
- name: Ensure arm64 Node for LHCI
run: |
echo "node arch before: $(node -p "process.arch")"
if [ "$(node -p "process.arch")" != "arm64" ]; then
NODE_VER=20.17.0
curl -fsSLO https://nodejs.org/dist/v$NODE_VER/node-v$NODE_VER-darwin-arm64.tar.xz
tar -xJf node-v$NODE_VER-darwin-arm64.tar.xz
echo "$PWD/node-v$NODE_VER-darwin-arm64/bin" >> "$GITHUB_PATH"
echo "PATH updated to prefer arm64 node"
fi
echo "node arch after: $(node -p "process.arch")"
- name: Show arch & chrome info
run: |
echo "uname -m: $(uname -m)"
echo "node: $(node -v) arch=$(node -p "process.arch")"
"$CHROME_PATH" --version || true
- name: Run Lighthouse CI
run: npx lhci autorun --chrome-path="$CHROME_PATH"
run: npx lhci autorun --chrome-path="$CHROME_PATH" --collect.url=http://127.0.0.1:3010/
env: { CI: true }
# ---- fixes end here ----
- name: Upload LHCI results
if: always()
+1 -1
View File
@@ -1,7 +1,7 @@
{
"ci": {
"collect": {
"url": ["http://localhost:3000/"],
"url": ["http://127.0.0.1:3010/"],
"numberOfRuns": 3
},
"assert": {