Skip to content

Commit 8f26580

Browse files
committed
"adding script to ensure artifactory running"
1 parent a6b1117 commit 8f26580

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,18 @@ jobs:
4343
java-version: "8"
4444
distribution: "zulu"
4545

46+
- name: Wait for Artifactory
47+
run: |
48+
for i in {1..30}; do
49+
if curl -sf http://localhost:8081/artifactory/api/system/ping; then
50+
echo "Artifactory is up!"
51+
exit 0
52+
fi
53+
echo "Waiting for Artifactory..."
54+
sleep 10
55+
done
56+
echo "Artifactory did not start in time"
57+
exit 1
58+
4659
- name: Run tests
4760
run: ./gradlew${{ matrix.gradlewSuffix }} clean test

0 commit comments

Comments
 (0)