Files
full-stack-fastapi/.gitea/workflows/test-docker-compose.yml
魏风 5d50401d40
Some checks failed
Deploy to Production / deploy (push) Failing after 2m57s
Playwright Tests / test-playwright (push) Failing after 22s
Test Backend / test-backend (push) Failing after 14s
Test Docker Compose / test-docker-compose (push) Has been cancelled
ci(gitea): add offline-friendly test workflows and deploy on bt
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 10:33:38 +08:00

32 lines
741 B
YAML

name: Test Docker Compose
on:
push:
branches:
- main
- bt
pull_request:
types:
- opened
- synchronize
jobs:
test-docker-compose:
runs-on: ubuntu-latest
steps:
- name: Checkout and verify compose stack
run: |
set -euo pipefail
git clone "http://172.17.0.1:3000/${{ github.repository }}.git" .
git checkout "${{ github.sha }}"
docker compose build
docker compose down -v --remove-orphans || true
docker compose up -d --wait backend frontend adminer
curl -fsS http://localhost:8000/api/v1/utils/health-check
curl -fsS http://localhost:5173
docker compose down -v --remove-orphans || true