BuyingAgent/.gitea/workflows/test.yml
Lars 3ac42645ef
All checks were successful
Deploy Development / deploy (push) Successful in 1m6s
Test Suite / smoke-dev (push) Successful in 0s
Richte Develop-Build und Main-Deploy analog zur Jinkendo-Familie ein.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-03 10:47:48 +02:00

36 lines
1.0 KiB
YAML

name: Test Suite
on:
push:
branches: [develop]
workflow_run:
workflows: ["Deploy Development"]
types: [completed]
workflow_dispatch:
jobs:
smoke-dev:
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Non-destructive smoke against the running Dev API
run: |
set -e
echo "wait for live Dev API (buyingagent-dev)"
for i in $(seq 1 60); do
if curl -sf http://localhost:8095/health/live >/dev/null; then
echo "DEV /health/live ready (attempt $i)"
break
fi
if [ "$i" -eq 60 ]; then
echo "timeout waiting for DEV /health/live"
exit 1
fi
sleep 5
done
curl -sf http://localhost:8095/health/live
echo
curl -sf http://localhost:8095/health/ready
echo
echo "LAN smoke OK: http://192.168.2.49:8095"