From a98dab88ef625fedb9160ecaf8db2c73f7f0439b Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Sun, 10 Dec 2023 22:45:13 +0100 Subject: [PATCH] Laravel database migration test --- .github/workflows/integration-tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index e1e62b8..f356328 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -34,4 +34,13 @@ jobs: ./k6 run script.js - name: Test with curl run: | - curl -i http://localhost \ No newline at end of file + 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 nginx-php-fpm php artisan migrate \ No newline at end of file