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
i can't believe this is exactly what i was looking for. Thank you!
@DevLeonardo
Жыл бұрын
That's great, you're welcome :D
Well explained. I liked how you even made clear how you add and commits files at the same time :D
@DevLeonardo
Жыл бұрын
Thank you! If you're interested, I uploaded a dedicated video on git aliases: kzread.info/dash/bejne/h59oqdCSn7Tej6w.html
@mryoutuber6
2 ай бұрын
this job failed show in workflow why .i run RDP
So useful! Thank you!
@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 😅
Thanks ;) subscribed! keep creating such videos , also learned something new today
@DevLeonardo
4 ай бұрын
Thank you and welcome! :D
thank you man !
thanks man , you help a lot !!!
@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!
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😢😢
Btw can you say how are you getting suggestion on cmd prompt???
@DevLeonardo
6 ай бұрын
Heyy! I use a tool called fig.io, I also made a video about it: kzread.info/dash/bejne/eoKKpJt9otKYg5c.html
whats the github extenssion you have in VSCode ?
@DevLeonardo
Жыл бұрын
Hey! It's called GitHub Pull Requests and Issues :)
Good video 👍
@DevLeonardo
Ай бұрын
Thanks 👍
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
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
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
ur legend
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
Жыл бұрын
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 :)
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