Laravel database migration test

This commit is contained in:
2023-12-10 22:40:58 +01:00
parent 988b57db6e
commit bf1efa773d

View File

@@ -35,4 +35,13 @@ jobs:
- name: Test with curl - name: Test with curl
run: | run: |
curl -i http://localhost 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