mirror of
https://github.com/jkaninda/nginx-php-fpm.git
synced 2026-01-23 21:09:08 +01:00
Laravel database migration test
This commit is contained in:
9
.github/workflows/integration-tests.yml
vendored
9
.github/workflows/integration-tests.yml
vendored
@@ -35,3 +35,12 @@ 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 nginx-php-fpm php artisan migrate
|
||||||
Reference in New Issue
Block a user