Installer endpoint health #129
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Installer endpoint health | |
| on: | |
| schedule: | |
| - cron: "17 * * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| smoke-test: | |
| name: Smoke test get.roomote.dev | |
| runs-on: blacksmith-2vcpu-ubuntu-2404 | |
| steps: | |
| - name: Verify installer endpoints | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| installer="$(curl -fsSL --retry 3 https://get.roomote.dev)" | |
| grep -Fq '# Roomote one-command installer' <<< "$installer" | |
| install_sh="$(curl -fsSL --retry 3 https://get.roomote.dev/install.sh)" | |
| grep -Fq '# Roomote one-command installer' <<< "$install_sh" | |
| latest="$(curl -fsSL --retry 3 https://get.roomote.dev/latest-version)" | |
| grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+' <<< "$latest" | |
| caddyfile="$(curl -fsSL --retry 3 https://get.roomote.dev/raw/develop/deploy/caddy/Caddyfile)" | |
| grep -Fq 'reverse_proxy' <<< "$caddyfile" | |
| status="$(curl -sS -o /dev/null -w '%{http_code}' https://get.roomote.dev/raw/develop/README.md)" | |
| test "$status" = "404" |