From bf1efa773dbf0e65738630d361bd0703b3beb731 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Sun, 10 Dec 2023 22:40:58 +0100 Subject: [PATCH] Laravel database migration test --- .github/workflows/integration-tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index e33337c..043d5cd 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -35,4 +35,13 @@ jobs: - name: Test with curl run: | curl -i http://localhost + - name: Waiting for database connection + run: | + while ! docker exec mysql mysql --user=root --password=password -e "status" &> /dev/null ; do + echo "Waiting for database connection..." + sleep 5 + done + - name: Laravel database migration test + run: | + docker exec php-fpm php artisan migrate