Skip to content

Commit dd66cdb

Browse files
committed
Change test for websocket
1 parent 6a11a5b commit dd66cdb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,23 @@ jobs:
7373
- name: Wait for services to be ready
7474
run: sleep 30
7575

76+
- name: Install websocat
77+
run: sudo apt-get install -y websocat
78+
7679
- name: Run Tests
7780
env:
7881
FRONTEND_URL: ${{ vars.FRONTEND_URL }}
7982
USER_SERVICE_URL: ${{ vars.USER_SERVICE_URL }}
8083
QUESTION_SERVICE_URL: ${{ vars.QUESTION_SERVICE_URL }}
8184
MATCHING_SERVICE_URL: ${{ vars.MATCHING_SERVICE_URL }}
8285
run: |
83-
curl -sSL -o /dev/null $QUESTION_SERVICE_URL
84-
curl -fsSL -o /dev/null $USER_SERVICE_URL
85-
curl -fsSL -o /dev/null $FRONTEND_URL
86-
curl -fsSL -o /dev/null $MATCHING_SERVICE_URL
86+
echo "Testing Question Service..."
87+
curl -sSL -o /dev/null $QUESTION_SERVICE_URL && echo "Question Service is up"
88+
echo "Testing User Service..."
89+
curl -fsSL -o /dev/null $USER_SERVICE_URL && echo "User Service is up"
90+
echo "Testing Frontend..."
91+
curl -fsSL -o /dev/null $FRONTEND_URL && echo "Frontend is up"
92+
echo "Testing Matching Service..."
93+
websocat $MATCHING_SERVICE_URL --ping && echo "Matching Service is up"
8794
8895
# We can add more tests here

0 commit comments

Comments
 (0)