Skip to content

Commit a9a905a

Browse files
committed
Wait for server with curl
1 parent 9912967 commit a9a905a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test-workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: 'docker run -p 8080:8080 krzema12/github-workflows-kt-jit-binding-server &'
2626
- id: 'wait-for-server'
2727
if: ${{ steps.step-1.outcome != 'success' }}
28-
run: 'sleep 30'
28+
run: 'curl --head -X GET --retry 60 --retry-connrefused --retry-delay 1 http://localhost:8080/status'
2929
- id: 'replace-server-url-in-script'
3030
if: ${{ steps.step-1.outcome != 'success' }}
3131
run: sed -i -e 's/https:\/\/bindings.krzeminski.itt/http:\/\/localhost:8080/g' .github/workflows/test-workflow.main.kts

0 commit comments

Comments
 (0)