Skip to content

Commit f203049

Browse files
committed
chore(ci): add echo markers and inline monitor step
1 parent 6097166 commit f203049

1 file changed

Lines changed: 24 additions & 7 deletions

File tree

.github/workflows/accessibility-diff.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,42 @@ jobs:
5656
continue-on-error: true
5757
run: |
5858
npm run test:accessibility
59-
60-
- name: Dry-run monitor (local report test)
59+
- name: "VERIFY-SW: check service worker in dist"
60+
if: always()
61+
run: |
62+
echo "VERIFY-SW: start"
63+
if [ -f dist/service-worker.js ]; then
64+
echo "VERIFY-SW: SW present - dist/service-worker.js exists"
65+
else
66+
echo "VERIFY-SW: SW missing - dist/service-worker.js not found"
67+
fi
68+
echo "VERIFY-SW: end"
69+
- name: "Dry-run monitor (local report test) — exercise and verbose"
6170
if: always()
6271
env:
6372
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6473
run: |
65-
# Exercise the monitor against the in-job playwright-report without posting comments
66-
python3 scripts/monitor_a11y_ci.py --branch "${{ github.head_ref }}" --local-report-dir playwright-report --dry-run --verbose
74+
echo "MONITOR: start (dry-run verbose)"
75+
echo "MONITOR: invoking monitor with --local-report-dir playwright-report --dry-run --verbose"
76+
python3 scripts/monitor_a11y_ci.py --branch "${{ github.head_ref }}" --local-report-dir playwright-report --dry-run --verbose || true
77+
echo "MONITOR: end (dry-run)"
6778
68-
- name: Collect playwright report and run a11y diff
79+
- name: "Collect playwright report and run a11y diff (auto-comment on PRs)"
6980
if: always()
7081
env:
7182
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7283
run: |
84+
echo "MONITOR: start (final run)"
7385
# Use the local playwright-report directory to avoid artifact download/auth issues
7486
# Only auto-comment when this run is for a pull_request event and a real token is available
7587
if [ "${{ github.event_name }}" = "pull_request" ]; then
76-
python3 scripts/monitor_a11y_ci.py --auto-comment --local-report-dir playwright-report
88+
echo "MONITOR: auto-comment mode (will post/update anchored PR comment)"
89+
python3 scripts/monitor_a11y_ci.py --auto-comment --local-report-dir playwright-report || true
7790
else
78-
python3 scripts/monitor_a11y_ci.py --local-report-dir playwright-report --dry-run
91+
echo "MONITOR: not a pull_request event; performing dry-run"
92+
echo "[DRY-RUN] Extracted axe-results:"
93+
# Call monitor in dry-run mode but echo that it's a dry-run to make logs greppable
94+
python3 scripts/monitor_a11y_ci.py --local-report-dir playwright-report --dry-run --verbose || true
7995
fi
96+
echo "MONITOR: end (final run)"
8097

0 commit comments

Comments
 (0)