You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my Laravel project, I squashed my migrations which resulted in a schema.dump (sql) file which is imported when running your migrations.
I my tests we make use of the RefreshDatabase trait which makes sure you start your test with a clean database. Since I squashed our migrations, it tries to import the schema.dump via a mysql command which cannot be found.
When running my tests in GitHub I encounter the follow exception;
1) Tests\***\***\***
Symfony\Component\Process\Exception\ProcessFailedException: The command "mysql --user="${:LARAVEL_LOAD_USER}" --*** --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" failed.
Exit Code: 127(Command not found)
Working directory: /app
Output:
================
Error Output:
================
sh: mysql: not found
Hi,
In my Laravel project, I squashed my migrations which resulted in a
schema.dump
(sql) file which is imported when running your migrations.I my tests we make use of the RefreshDatabase trait which makes sure you start your test with a clean database. Since I squashed our migrations, it tries to import the
schema.dump
via amysql
command which cannot be found.When running my tests in GitHub I encounter the follow exception;
Work flow:
Shouldn't
mysql
be installed by default?The text was updated successfully, but these errors were encountered: