mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-09-22 13:48:42 +00:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
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
|