Understanding GitHub Actions - Automated Testing

Ғылым және технология

Learn how to use GitHub Actions to automate your open source project. This beginner-level tutorial will show you how to set up and use Actions to streamline your workflow and save time. Whether you're new to Actions or just looking to brush up on your skills, this video has you covered.
_______________________________
Hit like and subscribe for more content! :D
Join the Discord community! Here's the invite: / discord
You can also follow me on the other platforms:
Twitter: / balastrong
dev.to: dev.to/balastrong
TikTok: / balastrong
GitHub: github.com/Balastrong
Instagram: / devbalastrong
_______________________________
TIMESTAMPS
00:00 Summary
00:22 Hello World Action
04:00 Demo
04:36 Run Test Action
07:45 Demo
08:40 Handle Failing Tests
11:05 More on GitHub Actions
_______________________________
Sound effects from www.zapsplat.com

Пікірлер: 26

  • @AnaRebecaAR
    @AnaRebecaAR Жыл бұрын

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

  • @DevLeonardo

    @DevLeonardo

    Жыл бұрын

    That's great, you're welcome :D

  • @przemysawbaca2449
    @przemysawbaca2449 Жыл бұрын

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

  • @DevLeonardo

    @DevLeonardo

    Жыл бұрын

    Thank you! If you're interested, I uploaded a dedicated video on git aliases: kzread.info/dash/bejne/h59oqdCSn7Tej6w.html

  • @mryoutuber6

    @mryoutuber6

    2 ай бұрын

    this job failed show in workflow why .i run RDP

  • @micheleverriello
    @micheleverriello11 ай бұрын

    So useful! Thank you!

  • @DevLeonardo

    @DevLeonardo

    11 ай бұрын

    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 😅

  • @panwar2001
    @panwar20014 ай бұрын

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

  • @DevLeonardo

    @DevLeonardo

    4 ай бұрын

    Thank you and welcome! :D

  • @dananjayachathuranga7113
    @dananjayachathuranga71135 ай бұрын

    thank you man !

  • @matheuslevi3513
    @matheuslevi351310 ай бұрын

    thanks man , you help a lot !!!

  • @DevLeonardo

    @DevLeonardo

    10 ай бұрын

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

  • @phanhuyhoang3720
    @phanhuyhoang37207 ай бұрын

    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
    @studystudy1236 ай бұрын

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

  • @DevLeonardo

    @DevLeonardo

    6 ай бұрын

    Heyy! I use a tool called fig.io, I also made a video about it: kzread.info/dash/bejne/eoKKpJt9otKYg5c.html

  • @ricardopereira597
    @ricardopereira597 Жыл бұрын

    whats the github extenssion you have in VSCode ?

  • @DevLeonardo

    @DevLeonardo

    Жыл бұрын

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

  • @Hei102
    @Hei102Ай бұрын

    Good video 👍

  • @DevLeonardo

    @DevLeonardo

    Ай бұрын

    Thanks 👍

  • @Yurtle13
    @Yurtle139 ай бұрын

    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

    9 ай бұрын

    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

    9 ай бұрын

    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

  • @zakariafarah1256
    @zakariafarah12562 ай бұрын

    ur legend

  • @mohanrr1974
    @mohanrr1974 Жыл бұрын

    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

    Жыл бұрын

    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 Жыл бұрын

    If you want to run and test your GitHub Actions in local, without commit and push every time, here's how: kzread.info/dash/bejne/h5uj0M6lYMiYf9Y.html

Келесі