reanimate/.github/workflows/site-checks.yml
2020-09-22 13:55:37 +08:00

30 lines
718 B
YAML

name: Site checker
on:
schedule:
- cron: "0 * * * *"
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install w3c-linkchecker
- name: Check websocket connection
run: |
#sudo npm install -g wscat
wscat --version
wscat --connect --help "wss://reanimate.clozecards.com:443/ws/"
- name: Check links at reanimate.github.io
run: |
checklink --quiet --broken "https://reanimate.github.io/" > failures.txt
if [ -s failures.txt ]; then
cat failures.txt
exit 1
fi