Github Actions in Laravel: Run PHPUnit on Every Pull Request

Поделиться
HTML-код
  • Опубликовано: 17 сен 2024
  • Did you know how easy it is to set up Github Actions with automated tests running on every PR? Let me show you.
    Related links:
    - Laravel Github Actions laravel-news.c...
    - Using GitHub actions to run the tests of Laravel projects and packages freek.dev/1546...
    - Github Pricing: github.com/pri...
    - - - - -
    Support the channel by checking out our products:
    - Enroll in my Laravel courses: laraveldaily.t...
    - Try our Laravel QuickAdminPanel: bit.ly/quickad...
    - Purchase my Livewire Kit: livewirekit.com
    - View Laravel Code Examples: laravelexample...
    - Subscribe to my weekly newsletter: bit.ly/laravel-...

Комментарии • 42

  • @nabeelyousafpasha
    @nabeelyousafpasha 2 года назад +4

    Yeah it was mich needed for CI / CD pipelines.
    So now working with YML syntax.
    Respect from Pakistan 🇵🇰

  • @p30mehrdad
    @p30mehrdad 2 года назад +3

    Real life awsome example again!
    Thanks You.

  • @cliffordusidamen6622
    @cliffordusidamen6622 2 года назад +3

    All your content are always useful. Thanks for the good work!

  • @erickzaratehernandez3953
    @erickzaratehernandez3953 2 года назад

    Thank you very much Povilas, I really appreciate your videos. Greetings from Mexico

  • @lifecyclevlog
    @lifecyclevlog 2 года назад +1

    Thank you for these awesome contents 😍

  • @roadsofhimachal
    @roadsofhimachal 2 года назад

    Thanks for this video. Was looking for this from a long time

  • @jorgefonseca169
    @jorgefonseca169 2 года назад

    thank you so much, i've been banging my head for a long time, thought it was my mistake

  • @lexvdw
    @lexvdw 2 года назад +2

    Nice, was going to ask if you were going to do a video on github actions. I also use it to trigger deployment via forge.

  • @herbertk9266
    @herbertk9266 2 года назад +1

    Thank you

  • @JogloDev
    @JogloDev 2 года назад +1

    Laravel CI/CD using github action pleaseee

    • @LaravelDaily
      @LaravelDaily  2 года назад +2

      Yes it's in the list for some day

  • @GergelyCsermely
    @GergelyCsermely 2 года назад

    Thanks

  • @p30mehrdad
    @p30mehrdad 2 года назад +2

    Do you have any plan to continue this awsome video with such a simple basic CD/CD ?

    • @LaravelDaily
      @LaravelDaily  2 года назад

      To be honest, just this one thing is 80% of CI/CD procedure, everything else is very individual, depending on the project, code, versions, and tools you use.

    • @p30mehrdad
      @p30mehrdad 2 года назад

      @@LaravelDaily I agree. Thanks by the way.

  • @nabeelyousafpasha
    @nabeelyousafpasha 2 года назад

    Now exploring the ability to RESTRICT the merging of my opened PR into base branch UNTIL tests pass successfully 🇵🇰

  • @hamzasaqib3802
    @hamzasaqib3802 Год назад

    what changes i needs to do for mysql?

  • @martomystery
    @martomystery 2 года назад

    Is it really okay to have the permission as 777 on storage or this is a one off exclusion since it is a test server?

  • @josnyjs
    @josnyjs 2 года назад

    My question is, do you have to write test in order for this to happen ?

    • @LaravelDaily
      @LaravelDaily  2 года назад

      Well yes, you need to write your automated tests in the /tests folder.

  • @librasulus
    @librasulus 2 года назад

    Does that solution require the whole vendor and npm packages commited in the branch? That seems strange.

    • @LaravelDaily
      @LaravelDaily  2 года назад

      No it doesn't require that, why do you think so? As a part of the workflow, there are "composer install" and "npm install" commands.

    • @librasulus
      @librasulus 2 года назад

      @@LaravelDaily oh ok, thank you

  • @dhanushkafernando6316
    @dhanushkafernando6316 2 года назад

    Is it possible to do a video about how to setup auto deployment to a laravel project Using github actions ?

  • @sylvain351
    @sylvain351 2 года назад

    It only for user make test...

  • @esquerda775
    @esquerda775 2 года назад

    how do i make laravel CD in private server(EC2) with github actions?

    • @LaravelDaily
      @LaravelDaily  2 года назад

      Googled "github actions cd private ec2", a lot of results there.

  • @kingstalker
    @kingstalker 2 года назад

    Thank you do you have a video on how to set up a mysql test step by step and refresh and seeding the test database instead of using sqlite?I have seen one of your video but it was about a year ago and when I tried it it keeps failing maybe i must just try again today and I think I did something wrong

    • @LaravelDaily
      @LaravelDaily  2 года назад

      It seems like you don't need another video, but you need to debug the specific error you have. If you post the error here, someone may help you to eliminate it.

  • @radhekrishnasingh9145
    @radhekrishnasingh9145 2 года назад

    Any Discount Code for Livewire Kit. Or Discount for Student..?

  • @menma977
    @menma977 2 года назад

    Can you make tutorial laravel sail with docker i have trouble when using some command

    • @LaravelDaily
      @LaravelDaily  2 года назад

      I don't use Laravel Sail and don't like its idea, so not in plans, sorry.

    • @menma977
      @menma977 2 года назад

      @@LaravelDaily I actually focused on the docker, but in the tutorial the average is only laravel sail, I'm confused because when I run docker without laravel sail it can't access all routes, either there is a problem or you have to reset the .httpaccess section or I don't understand

    • @LaravelDaily
      @LaravelDaily  2 года назад

      Sorry I can't debug it for you

    • @menma977
      @menma977 2 года назад +1

      @@LaravelDaily sorry to disturb your time i'm just complaining with myself😀

  • @karimtarek940
    @karimtarek940 Год назад

    Hello povilas
    I have multiple websites on a shared host ( hostinger )
    Every time i make new changes on the repository i open the ssh then going to the project folder and pull the changes
    I tried to search about any way to run git pull on the server or something like this to pull the changes automatically but i didn't find any thing
    Can you help with this

    • @LaravelDaily
      @LaravelDaily  Год назад

      I don't use shared hosting, sorry

    • @karimtarek940
      @karimtarek940 Год назад

      @@LaravelDaily is this even possible?

    • @LaravelDaily
      @LaravelDaily  Год назад +1

      No idea. I don't know much about shared hosting, except the fact that I don't recommend it to anyone.

  • @GergelyCsermely
    @GergelyCsermely 2 года назад

    Thanks