Understanding GitHub Actions - Automated Testing

Sdílet
Vložit

Komentáře • 26

  • @przemysawbaca2449
    @przemysawbaca2449 Před rokem +5

    Well explained. I liked how you even made clear how you add and commits files at the same time :D

    • @DevLeonardo
      @DevLeonardo  Před rokem

      Thank you! If you're interested, I uploaded a dedicated video on git aliases: czcams.com/video/Uk4GnYoQx_I/video.html

    • @mryoutuber6
      @mryoutuber6 Před 5 měsíci

      this job failed show in workflow why .i run RDP

  • @AnaRebecaAR
    @AnaRebecaAR Před rokem +4

    i can't believe this is exactly what i was looking for. Thank you!

  • @CodePursuit
    @CodePursuit Před 7 měsíci +1

    Thanks ;) subscribed!
    keep creating such videos ,
    also learned something new today

  • @micheleverriello
    @micheleverriello Před rokem +1

    So useful! Thank you!

    • @DevLeonardo
      @DevLeonardo  Před rokem +1

      Glad it helped you! Have fun with GitHub Actions now, there's so much you can do with them!
      An indicator is the amount of video I'm making on this topic 😅

  • @dananjayachathuranga7113
    @dananjayachathuranga7113 Před 8 měsíci +1

    thank you man !

  • @matheuslevi3513
    @matheuslevi3513 Před rokem

    thanks man , you help a lot !!!

    • @DevLeonardo
      @DevLeonardo  Před rokem

      Glad to hear that, thank you :D
      Feel free to join Discord if you have any question, I'll be happy to help!

  • @ricardopereira597
    @ricardopereira597 Před rokem +2

    whats the github extenssion you have in VSCode ?

    • @DevLeonardo
      @DevLeonardo  Před rokem +2

      Hey! It's called GitHub Pull Requests and Issues :)

  • @Yurtle13
    @Yurtle13 Před rokem +1

    What is that .mjs file? How are you calling it? I would expect you to have it as part of your workflow somehow, instead seems like It's auto triggering fails and passes??

    • @DevLeonardo
      @DevLeonardo  Před rokem +2

      mjs is just a particular version of js files, but that's out of the scope of the video. The instructions works with every js file anyway :)
      Tests are executed with ava as the test runner, but this also works with jest, vitest or any other testing framework. How they usually work is matching all files having as name "test" or "spec" or being inside a folder called __test__. This is configurable for each test runner anyway.
      The github action runs "npm run test" and picks up everything that is configured.
      Anyway, you can look at the repo: github.com/Balastrong/github-actions-video

    • @Yurtle13
      @Yurtle13 Před rokem

      Thank You! Between your answer and looking up the python equivalent workflow of what you were trying to do, eg: pytest w/ python it all started clicking

  • @phanhuyhoang3720
    @phanhuyhoang3720 Před 9 měsíci

    I got a problem. My file in the root but it try to open /home/runner/work/my-repo name/my repo name/my file. I do not know how to do that😢😢

  • @studystudy123
    @studystudy123 Před 9 měsíci +1

    Btw can you say how are you getting suggestion on cmd prompt???

    • @DevLeonardo
      @DevLeonardo  Před 9 měsíci

      Heyy! I use a tool called fig.io, I also made a video about it: czcams.com/video/HNVB9Dro2S4/video.html

  • @zakariafarah1256
    @zakariafarah1256 Před 5 měsíci

    ur legend

  • @Hei102
    @Hei102 Před 4 měsíci

    Good video 👍

  • @mohanrr1974
    @mohanrr1974 Před rokem

    Thanks for this video. I tried it right away but the action seems to be running for ever. It is showing "build started 1h 10m ... Starting the job..."

    • @DevLeonardo
      @DevLeonardo  Před rokem

      Hey! If you run the tests in local do the command complete just fine? Feel free to link the repo so I can have a look :)

  • @DevLeonardo
    @DevLeonardo  Před rokem

    If you want to run and test your GitHub Actions in local, without commit and push every time, here's how: czcams.com/video/Ugonll0e2Os/video.html