Category: Laravel

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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners