Skip to content

Check server-side rendering #326

Check server-side rendering

Check server-side rendering #326

Workflow file for this run

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