mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-09-22 05:42:56 +00:00
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
32 lines
774 B
YAML
32 lines
774 B
YAML
name: Test Docker Compose
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
|
|
test-docker-compose:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- run: docker compose build
|
|
- run: docker compose down -v --remove-orphans
|
|
- run: docker compose up -d --wait backend frontend adminer
|
|
- name: Test backend is up
|
|
run: curl http://localhost:8000/api/v1/utils/health-check
|
|
- name: Test frontend is up
|
|
run: curl http://localhost:5173
|
|
- run: docker compose down -v --remove-orphans
|