Skip to content

Commit 6b438fc

Browse files
committed
ci(tests):replaced localhost with ip
1 parent 12e84a4 commit 6b438fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
--health-interval 30s
3939
--health-timeout 5s
4040
--health-retries 5
41-
--health-cmd "curl -f http://localhost:8000/en-US/account/login || exit 1"
4241
--name splunk
4342
ports:
4443
- 8000:8000
@@ -85,10 +84,10 @@ jobs:
8584
# npm install
8685
- name: Wait for Splunk Web UI to be fully ready
8786
run: |
88-
echo "Waiting for Splunk Web UI at http://localhost:8000/en-US/account/login"
87+
echo "Waiting for Splunk Web UI at http://$SPLUNK_IP:8000/en-US/account/login"
8988
# Try for up to 60 * 5 = 300 seconds (5 minutes)
9089
for i in $(seq 1 60); do
91-
if curl -s -f http://localhost:8000/en-US/account/login; then
90+
if curl -s -f http://$SPLUNK_IP:8000/en-US/account/login; then
9291
echo "Splunk Web UI is ready!"
9392
exit 0
9493
fi
@@ -137,3 +136,4 @@ jobs:
137136
reporter: java-junit
138137
working-directory: test
139138
fail-on-error: false
139+
fail-on-empty: false

0 commit comments

Comments
 (0)