name: Staging Smoke Test on: push: branches: - main schedule: - cron: '*/15 * * * *' workflow_dispatch: jobs: smoke-test: runs-on: ubuntu-latest steps: - name: Check staging environment uptime run: | HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://staging.the-nexus.com/) if [ "$HTTP_CODE" -eq 200 ]; then echo "Staging environment is up (HTTP 200)" else echo "Staging environment returned HTTP $HTTP_CODE" exit 1 fi