File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -99,20 +99,30 @@ jobs:
9999 ACKIFY_MAIL_FROM_NAME : " Ackify Test"
100100 ACKIFY_LOG_LEVEL : " debug"
101101 ACKIFY_AUTH_MAGICLINK_ENABLED : " true"
102- ACKIFY_LOCALES_DIR : " backend/locales"
103- ACKIFY_TEMPLATES_DIR : " backend/templates"
102+ ACKIFY_LOCALES_DIR : " ${{ github.workspace }}/ backend/locales"
103+ ACKIFY_TEMPLATES_DIR : " ${{ github.workspace }}/ backend/templates"
104104 ACKIFY_AUTH_MAGICLINK_RATE_LIMIT_EMAIL : " 1000"
105105 ACKIFY_AUTH_MAGICLINK_RATE_LIMIT_IP : " 1000"
106106 ACKIFY_AUTH_RATE_LIMIT : " 1000"
107107 ACKIFY_DOCUMENT_RATE_LIMIT : " 1000"
108108 ACKIFY_GENERAL_RATE_LIMIT : " 1000"
109109 run : |
110110 cd backend && go build -o ../ackify ./cmd/community
111- ./ackify &
111+ cd ..
112+ ./ackify > /tmp/ackify.log 2>&1 &
112113 echo $! > /tmp/ackify.pid
113114
114115 # Wait for server to be ready
115- timeout 30 bash -c 'until curl -s http://localhost:8080/api/v1/health > /dev/null; do sleep 1; done'
116+ for i in $(seq 1 60); do
117+ if curl -s http://localhost:8080/api/v1/health > /dev/null 2>&1; then
118+ echo "Server is ready after ${i}s"
119+ exit 0
120+ fi
121+ sleep 1
122+ done
123+ echo "Server failed to start. Logs:"
124+ cat /tmp/ackify.log
125+ exit 1
116126
117127 - name : Run Cypress tests
118128 uses : cypress-io/github-action@v6
You can’t perform that action at this time.
0 commit comments