Skip to content

Commit ed4e130

Browse files
committed
Test websocat trial 1
1 parent 8de8677 commit ed4e130

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/test.yml

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

76+
- name: Install websocat
77+
run: |
78+
sudo wget -qO /usr/local/bin/websocat https://github.com/vi/websocat/releases/latest/download/websocat.x86_64-unknown-linux-musl
79+
sudo chmod a+x /usr/local/bin/websocat
80+
websocat --version
81+
7682
- name: Run Tests
7783
env:
7884
FRONTEND_URL: ${{ vars.FRONTEND_URL }}
@@ -87,6 +93,11 @@ jobs:
8793
echo "Testing Frontend..."
8894
curl -fsSL -o /dev/null $FRONTEND_URL && echo "Frontend is up"
8995
echo "Testing Matching Service..."
96+
if ! (echo "Hello" | websocat $MATCHING_SERVICE_URL); then
97+
echo "WebSocket for Matching Service is not live"
98+
else
99+
echo "WebSocket for Matching Service is live"
100+
fi
90101
# Add in test for matching service in the future
91102
92103
# We can add more tests here

0 commit comments

Comments
 (0)