Can you start by posting the errors from Github Actions?
I suggest that you then have a look at your environment variables and perhaps dump these during debugging to ensure that you are using the correct ones during testing.
You are defining the DB_CONNECTION=sqlite and DB_DATABASE=:memory: in your phpunit.xml file: https://github.com/brokerbridge/github-actions/blob/master/phpunit.xml#L30 but you also create a MySQL database with a root user during setup. Note that you have not set a DB_PASSWORD in .env.example (which is copied to .env during setup) nor in .env.testing.
Note that you can pass certain variables directly to dusk using like done for phpunit here
You can see the error I'm getting below, it's a standard PHPUnit/Dusk error so I believe it's just an issue with the configuration.
F 1 / 1 (100%)
Time: 14.03 seconds, Memory: 18.00 MB
There was 1 failure:
1) Tests\Browser\ExampleTest::testBasicExample
Did not see expected text [Laravel] within element [body].
Failed asserting that false is true.
The issue I have though is that my environment variables are the defaults. Eg. sqlite for db_connection and :memory for db_database. Should the Laravel provided Action not work with the defaults for Laravel?
Perhaps I need to run the Dusk tests via sqlite, to match the PHPUnit config that is default by Laravel?
@brainbox I just confirmed the issue, and maybe this would be a good opportunity to add this to the Laravel documentation, but the problem is simply that Github uses 127.0.0.1:8000 as host, so it is important that your .env file has set APP_URL=http://127.0.0.1:8000.
You can force this by setting the variable in your workflow like so: