From 5c8cf840a17a3d768b8afa4e7c13e07f322d495b Mon Sep 17 00:00:00 2001 From: David Himmelstrup Date: Thu, 24 Sep 2020 11:42:07 +0800 Subject: [PATCH] CI: Use websocat to check websocket connection every hour. --- .github/workflows/site-checks.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/site-checks.yml b/.github/workflows/site-checks.yml index 68db252..0f1e781 100644 --- a/.github/workflows/site-checks.yml +++ b/.github/workflows/site-checks.yml @@ -23,8 +23,9 @@ jobs: - name: Check websocket connection run: | set -o xtrace - sudo npm i -g wscat - wscat --execute "GET /\n" --connect "https://reanimate.clozecards.com/ws/" || echo "Connection failed." + wget https://github.com/vi/websocat/releases/download/v1.6.0/websocat_amd64-linux-static -O websocat + chmod +x websocat + ./websocat -q -uU "wss://reanimate.clozecards.com/ws/" - name: Check links at reanimate.github.io run: checklink --quiet --broken "https://reanimate.github.io/" >> failures.txt - name: Check links at reanimate.readthedocs.io