mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-09-22 13:48:42 +00:00
28 lines
727 B
YAML
28 lines
727 B
YAML
name: Test Docker Compose
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
permissions: {}
|
|
|
|
jobs:
|
|
|
|
test-docker-compose:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
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
|