I'm having a hell of a time running getting my laravel dusk test to connect to the db correctly on Github Actions.
- I've tried both sqlite and mysql for the dusk test job.
- My normal php unit integration tests that don't involve a browser driver work fine.
- I can use a factory to create a dummy user in the dusk test cases and assert the user is added correctly to the db.
- I'm able to get my pdo connection from inside my dusk test cases.
- When I dump my config from inside the test, it all lines up.
HOWEVER, when I dump the config from the login controller I'm trying to test, the db name is wrong - laravel, rather than testing. It seems like php artisan serve isn't getting the correct database associated with it.
What could cause this?