add checks to action
This commit is contained in:
parent
ba0c476813
commit
01e8633f12
9
.github/workflows/stack-healthcheck.yml
vendored
9
.github/workflows/stack-healthcheck.yml
vendored
@ -13,6 +13,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Deploy the stack, timeout if not healthy after 2m
|
- name: Deploy the stack, timeout if not healthy after 2m
|
||||||
run: timeout 120 docker compose up --wait
|
run: timeout 120 docker compose up --wait
|
||||||
|
- name: Check creating database
|
||||||
- name: Setup tmate session
|
run: docker compose logs | grep "CREATE DATABASE"
|
||||||
uses: mxschmitt/action-tmate@v3
|
- 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."
|
Loading…
Reference in New Issue
Block a user