From 0e8ca46f1973cda51e024739d6a07a3a6a9e7c1c Mon Sep 17 00:00:00 2001 From: nmstudioo Date: Thu, 12 Nov 2026 06:24:33 +0600 Subject: [PATCH] ci: fix diff-range paths --- .github/workflows/diff-range.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/diff-range.yml b/.github/workflows/diff-range.yml index 6f16fca..8998f05 100644 --- a/.github/workflows/diff-range.yml +++ b/.github/workflows/diff-range.yml @@ -13,14 +13,15 @@ jobs: - uses: actions/setup-node@v7 with: { node-version: 24 } - run: | - cd head && npm ci && npx playwright install --with-deps chromium webkit - for d in base head; do (cd $d && python3 build/build.py --publish || true); done + (cd head && npm ci && npx playwright install --with-deps chromium webkit) + for d in base head; do (cd $d && python3 build/build.py --publish); done python3 -m http.server 8766 --directory base/site >/dev/null 2>&1 & python3 -m http.server 8765 --directory head/site >/dev/null 2>&1 & - sleep 3 - node tests/shots_all.js http://localhost:8766/ ../shots_base - node tests/shots_all.js http://localhost:8765/ ../shots_pr + curl -fsS --retry 10 --retry-connrefused -o /dev/null http://localhost:8766/ + curl -fsS --retry 10 --retry-connrefused -o /dev/null http://localhost:8765/ + (cd head && node tests/shots_all.js http://localhost:8766/ ../shots_base) + (cd head && node tests/shots_all.js http://localhost:8765/ ../shots_pr) python3 -m venv ~/v && ~/v/bin/pip install -q pillow - ~/v/bin/python tests/visual_diff.py ../shots_base ../shots_pr ../shots_diff 0.02 || true + ~/v/bin/python head/tests/visual_diff.py shots_base shots_pr shots_diff 0.02 || true - uses: actions/upload-artifact@v7 with: { name: visual-diff, path: 'shots_diff/', retention-days: 14 }