Check server-side rendering #243
Workflow file for this run
This file contains 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: Check server-side rendering | |
on: | |
deployment_status: | |
jobs: | |
check-ssr: | |
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if node/6 is ssr rendered | |
run: | | |
URL=$(echo ${{ github.event.deployment_status.environment_url }})/node/6 | |
echo "Fetch the URL: $URL" | |
curl -s $URL | grep -q "Originally Detonátor route (this message used for SSR check)" | |
if [ $? -eq 0 ]; then | |
echo "Server-side rendering is working" | |
else | |
echo "Server-side rendering broken" | |
exit 1 | |
fi |