CI: Use websocat to check websocket connection every hour.

This commit is contained in:
David Himmelstrup 2020-09-24 11:42:07 +08:00
commit 5c8cf840a1

View file

@ -23,8 +23,9 @@ jobs:
- name: Check websocket connection - name: Check websocket connection
run: | run: |
set -o xtrace set -o xtrace
sudo npm i -g wscat wget https://github.com/vi/websocat/releases/download/v1.6.0/websocat_amd64-linux-static -O websocat
wscat --execute "GET /\n" --connect "https://reanimate.clozecards.com/ws/" || echo "Connection failed." chmod +x websocat
./websocat -q -uU "wss://reanimate.clozecards.com/ws/"
- name: Check links at reanimate.github.io - name: Check links at reanimate.github.io
run: checklink --quiet --broken "https://reanimate.github.io/" >> failures.txt run: checklink --quiet --broken "https://reanimate.github.io/" >> failures.txt
- name: Check links at reanimate.readthedocs.io - name: Check links at reanimate.readthedocs.io