Skip to content

Commit 4a18d7b

Browse files
committed
More debug.
1 parent 0f4c673 commit 4a18d7b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/accessibility_scan.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,23 @@ jobs:
114114
run: |
115115
# Start virtual display with better settings
116116
Xvfb :99 -screen 0 1280x1024x24 -ac +extension GLX +render -noreset &
117+
XVFB_PID=$!
117118
sleep 3
118119
119-
# Start a minimal window manager to help with graphics
120-
openbox --display=:99 &
121-
sleep 2
120+
# Debug: Check if Xvfb is running
121+
if ! ps -p $XVFB_PID > /dev/null; then
122+
echo "Xvfb failed to start"
123+
exit 1
124+
fi
122125
123126
# Debug: Check if Rails server is still running
124127
curl -f http://localhost:3000 || (echo "Rails server not responding" && exit 1)
125128
129+
# Set additional Firefox environment variables for headless mode
130+
export MOZ_HEADLESS=1
131+
export DISPLAY=:99
132+
export GECKO_DRIVER_LOG=debug
133+
126134
# Run the accessibility scan with timeout
127135
timeout 300 python python_components/accessibility_scan/main.py || (echo "Accessibility scan timed out or failed" && exit 1)
128136

0 commit comments

Comments
 (0)