Creating a CI/CD Pipeline in Laravel with Github Actions

preview_player
Показать описание
In this video I show you how to add continuous integration & continuous deployment to your Laravel application with Github Actions. As described by CodeShip:

"Continuous integration is a development practice where developers integrate code into a shared repository frequently, preferably several times a day. Each integration can then be verified by an automated build and automated tests. "

This can be useful in your Laravel applications to ensure breaking changes are kept to a minimum by preventing failing builds to be merged into the target branch. If your build passes, it can move onto the next step which is continuous deployment which means once your changes have been merged into the target branch, it is automatically deployed to a test or staging environment — in some cases even production. In this video we will be applying CI & CD to the Icodestuff Laravel site. Before continuing, you should have a basic understanding of PHPUnit (testing) and PHPStan (static analysis).

If you like these type of videos be sure to leave us a like & comment!

Follow us on Instagram:

Github Repo:
Рекомендации по теме
Комментарии
Автор

Thanks a lot. This video has been really help.

developerukwelys
Автор

You are DEFINITELY doing a good job. I just stumbled on your post on Reddit. Had no idea it was your channel. What are the chances of me finding one video on Youtube search and a couple of days later, finding the other on Reddit on the same week. I received a reddit newsletter notification about the CI/CD thread on /r/Laravel.

One suggestion: I don't know if you already did it, but it would be nice to see a video where you present yourself. What is your background, what do you work with. What technologies do you use, this type of thing.

EduardoCruzFreelancer
Автор

Here are timestamps to help some of you out:
1:01 - What is CI/CD?
4:21 - Setting up our PHPUnit Testing Suite
10:15 - Setting up Static Analysis with PHPStan (LaraStan)
13:59 - Setting up Github Actions Config File

Also at 10:06 don't forget to add $this->setupDatabase() in your CreateApplication class within the setUp function.

Icodestuff
Автор

hi I was asked to Create a PHP Laravel MPV website with a basic function. i typically have been using templates up until now but want to understand GitHub, its uses and how I can move forward learning more about development . is this a good place to start?

I also need to price out the job. where can I start with this .

postnatalmotcoach
Автор

Dude, good tutorial, I've used your build configuration file and i've implemented phpstan with nunomaduro library and has worked. I would like that with your experience you can share us a tutorial deploying the laravel proyect on aws with CD (continous deployment). It could be very very good tutorial. greetings

arnoldmartinez
Автор

Just wanted to ask can we connect to server development MySQL database directly instead of creating database? This is the error when I tried connecting existing database from my server. No such file or directory (SQL: select * from information_schema.tables where table_schema = dummy_dev and table_name = migrations and table_type = 'BASE TABLE') where dummy_dev is my database name which I connected and already have test data.

Imagine
Автор

Thanks a lot for sharing, quite interesting content. What CI/CD service and template do you us nowdays?

luismata