Advanced Laravel Testing: CI/CD with GitHub Actions

  Рет қаралды 20,179

Laravel Daily

Laravel Daily

Күн бұрын

Пікірлер: 29
@antonyjere
@antonyjere 2 жыл бұрын
I love you! I am searching for a course like that months now. PS: In general I think devops with Laravel is something that many people need, keep it in mind for future courses maybe :)
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Yes, future courses around that are in plans, but probably in 2023.
@ellmatic
@ellmatic 2 жыл бұрын
7:36 I'm a bit confused by which branch GitHub Actions should be set up on. Should we do the initial yml setup on develop, staging, AND main branches? We do our work on other branches, then push to develop, it runs the tests on develop. When ready for staging (client review), we push to staging, it runs tests on staging. When ready for production, we push to main, it runs tests on production. Is this a good workflow? Thanks for all the great content!
@LaravelDaily
@LaravelDaily 2 жыл бұрын
A great point actually, for this example I just wanted to show how to automate the tests, on whatever branch, but in real-life scenario the Action should be on a PR from feature branch to develop, in most cases. Running tests on production is a very rare case, in my opinion, do it only if needed and you know what you're doing. Playing with production data/environment is pretty dangerous.
@ellmatic
@ellmatic 2 жыл бұрын
@@LaravelDaily Thanks for the helpful reply. That makes total sense now!
@stefersonpatake
@stefersonpatake 2 жыл бұрын
Yeah, the purpose of staging environment is just like that, to have data, the latest branch release and test everything like it were on production. Like Povilas pointed out, its very dangerous approach.
@ezz_dev
@ezz_dev 8 ай бұрын
My project is with mySQL what should I change in the code?
@w1z_pointblank
@w1z_pointblank Жыл бұрын
Awesome Video ! thanks for the video
@coolcha
@coolcha 2 жыл бұрын
Awesome video again, I added CI just last week on my project. A tip is to look at other laravel repos to see their workflows too. One question is you covered CI but didnt really cover CD. Could you highlight that a bit more please.
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Yeah, I kinda merged it into one topic because people view it as one. I don't want to get TOO deep into deployment and devops stuff at the moment, planning deeper courses on that later in 2022.
@coolcha
@coolcha 2 жыл бұрын
@@LaravelDaily looking forward to the course. Thanks.
@hari1042
@hari1042 2 жыл бұрын
is it possible to laravel parallel test (php artisan test --parallel) in github action ?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Haven't tried.
@mostafijurrahman4195
@mostafijurrahman4195 8 ай бұрын
Sir I trying to deploy with Samkirklan ftp deploy ... here folder created but file not uploaded please help me
@chrismiracle204
@chrismiracle204 2 жыл бұрын
Thank you so much for this detailed video. I have an error on my testcases on Github actions. SQLSTATE[HY000] [2002] Connection refused Is this something with migrations?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
No, connection refused means something is wrong with the database setup - either database wasn't launched, or wrong database, or wrong credentials.
@intipontt7490
@intipontt7490 2 жыл бұрын
Do you know a good Action to set up a MySQL or PostgreSQL database? I prefer using the same DBMS in my tests, development and production environments.
@LaravelDaily
@LaravelDaily 2 жыл бұрын
I haven't searched for it, to be honest, but a good idea for me to research in the future.
@morehungrykoala
@morehungrykoala 2 жыл бұрын
can you create a guide for CI/CD auto deployment? can't figure how to make it work and would really make it easier when deploying to test boxes.
@LaravelDaily
@LaravelDaily 2 жыл бұрын
It depends a lot on the web-server and tools you use, like Envoyer/Deployer/Forge etc. Maybe in the future I will talk about it, but, to be honest, I would like to stick with Laravel more, and leave DevOps topics to others.
@bestsolution794
@bestsolution794 2 жыл бұрын
Thanks you for providing the awesome series. Can you please make a series on the live chat using socket or web socket without using the vue js.. Please use only html css
@alvinellavu9603
@alvinellavu9603 2 жыл бұрын
Yes am with you on this, it just has to be a demo
@LaravelDaily
@LaravelDaily 2 жыл бұрын
You can't build a socket functionality like chat with just html/css, you need tools like Soketi and/or Laravel Echo. Planning to talk about it in the future, but a bit later, currently have other topics in mind.
@bestsolution794
@bestsolution794 2 жыл бұрын
@@LaravelDaily sure
@unitaxi1644
@unitaxi1644 2 жыл бұрын
Hi! I have subscribed to yearly membership last year. I am really enjoying by your courses there. But now I need pay for new year. The system have tried to get money from my card but there was not enought money for the payment. So now how can I pay manually the bill?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
To be honest, I don't know how it looks from student's side on Teachable platform. Somewhere there you should find a menu item like Subscription? Or maybe just purchase a new subscription by going to the course page directly? Or email support@teachable.com for support, unfortunately it's not my platform (for now) so I can't help much.
@ayenewyihune
@ayenewyihune 2 жыл бұрын
Helpful, thanks
@jayjolupoi88891
@jayjolupoi88891 2 жыл бұрын
awesome video, as always your video is really helpful and very applicable in real project. btw, do you have a sample project repository or a full laravel library repository which has a good automation test case on all the feature ? been learning of TDD and trying to apply it in my personal project but still can't stop being skeptical on making test on everything. its hard for me to figuring out what priority to test, is it controller, or the service and logical part or what kind of other part ? i mean when i see tutorial and automation test demontration usually they only gave an assertion of sample math logic or database record match, which make me questioned is it really necessary to test that part of the code ?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
laraveldaily.com/code-examples/tag/testing look at projects here
Laravel API Code Review: Inconsistent Code May Cost You a Job
10:47
Laravel Daily
Рет қаралды 1,7 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
How to design a modern CI/CD Pipeline
9:59
DevOps Journey
Рет қаралды 192 М.
I'm new to testing in Laravel (Watch me learn)
22:03
Laravel
Рет қаралды 12 М.
What Senior Devs ACTUALLY Do? (And how to become one)
7:12
Laravel Daily
Рет қаралды 7 М.
CI CD наглядные примеры
22:08
Ulbi TV
Рет қаралды 304 М.
5 Ways to DevOps-ify your App - Github Actions Tutorial
12:12
Fireship
Рет қаралды 710 М.
Laravel Security: Top 7 Mistakes Developers Make
11:16
Laravel Daily
Рет қаралды 88 М.
Laravel vs React
9:40
Aaron Francis
Рет қаралды 71 М.