Docker-Davinci-Resolve-Proj.../.github/workflows/stack-healthcheck.yml
2024-05-09 19:35:37 -05:00

24 lines
731 B
YAML

---
name: Stack Healthcheck
on:
push:
pull_request:
workflow_dispatch:
permissions: read-all
jobs:
test:
name: Test Stack
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
- name: Deploy the stack, timeout if not healthy after 2m
run: timeout 120 docker compose up --quiet-pull --wait
- name: Check creating database
run: docker compose logs | grep "CREATE DATABASE"
- name: Check database creation
run: docker compose logs | grep "Success. You can now start the database server"
- name: Check postgres init
run: docker compose logs | grep "PostgreSQL init process complete; ready for start up."