In this tutorial, we’re going to setup github actions to run tests on a merge of a Laravel Project To create a new workflow you will need to add a new file inside .github/workflows/laravel.yml and add the below yaml to this file and push to your repository.
Next we define what events we want to listen on to trigger this workflow, for this workflow we want to run tests when pull requests are merged into master or when they're pushes into master.
For a Laravel project we need to setup the project and then run the phpunit tests. The next time you push into the repository GitHub will build your project and run the phpunit tests on your application.