CI: Fix 404 checking.

This commit is contained in:
David Himmelstrup 2020-09-22 13:50:56 +08:00
commit e5be814929

View file

@ -15,15 +15,16 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get -y install w3c-linkchecker node-ws sudo apt-get -y install w3c-linkchecker
- name: Check websocket connection - name: Check websocket connection
run: | run: |
npm install -g wscat
wscat --version wscat --version
wscat --connect --help "wss://reanimate.clozecards.com:443/ws/" wscat --connect --help "wss://reanimate.clozecards.com:443/ws/"
- name: Check links at reanimate.github.io - name: Check links at reanimate.github.io
run: | run: |
FAILURES=$(checklink --quiet --broken "https://reanimate.github.io/") checklink --quiet --broken "https://reanimate.github.io/" > failures.txt
if [ -n "$FAILURES" ]; then if [ -s failures.txt ]; then
echo $FAILURES cat failures.txt
exit 1 exit 1
fi fi