From 01e8633f12fcfcfe51636067fff8ce7e56856a16 Mon Sep 17 00:00:00 2001 From: Elliot Matson Date: Fri, 29 Jul 2022 19:22:52 -0500 Subject: [PATCH] add checks to action --- .github/workflows/stack-healthcheck.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stack-healthcheck.yml b/.github/workflows/stack-healthcheck.yml index b066b6b..dfd393f 100644 --- a/.github/workflows/stack-healthcheck.yml +++ b/.github/workflows/stack-healthcheck.yml @@ -13,6 +13,9 @@ jobs: - uses: actions/checkout@v3 - name: Deploy the stack, timeout if not healthy after 2m run: timeout 120 docker compose up --wait - - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 \ No newline at end of file + - 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." \ No newline at end of file