File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ jobs:
3636 set -euxo pipefail
3737
3838 # Test server startup
39- docker run -d --name test-server -p 8000:8000 glim-test
39+ docker run -d --name test-server -p [::]: 8000:8000 -e PORT= 8000 glim-test
4040
4141 # Wait for server to start with retry logic
4242 for i in {1..30}; do
43- if curl -f -s http://localhost :8000/health > /dev/null 2>&1; then
43+ if curl -f -s http://[::] :8000/health > /dev/null 2>&1; then
4444 echo "Server is ready after $i seconds"
4545 if [ $i -gt 8 ]; then
4646 echo "::warning::Server took longer than expected to start ($i seconds)"
@@ -59,19 +59,19 @@ jobs:
5959 done
6060
6161 # Test health endpoint
62- if ! curl -f http://localhost :8000/health; then
62+ if ! curl -f http://[::] :8000/health; then
6363 echo "::error::Health endpoint test failed"
6464 exit 1
6565 fi
6666
6767 # Test main endpoint (should redirect)
68- if ! curl -f -I http://localhost :8000/; then
68+ if ! curl -f -I http://[::] :8000/; then
6969 echo "::error::Main endpoint test failed"
7070 exit 1
7171 fi
7272
7373 # Test image generation
74- if ! curl -f -o test-image.png -w "%{http_code}" http://localhost :8000/Xevion/Glim.png | grep -q "200"; then
74+ if ! curl -f -o test-image.png -w "%{http_code}" http://[::] :8000/Xevion/Glim.png | grep -q "200"; then
7575 echo "::error::Image generation test failed"
7676 exit 1
7777 fi
You can’t perform that action at this time.
0 commit comments