Docker-Davinci-Resolve-Proj.../.github/workflows/stack-healthcheck.yml
2024-04-25 20:32:54 +00:00

21 lines
707 B
YAML

---
name: Stack Healthcheck
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
name: Test Stack
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 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."