Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 15, 2022 01:12 am GMT

Using Github Actions to automate my tests

This week I improved my SSG by using Github Actions. I added a script that automatically runs my tests so I can test if my main features still work after adding things to my code. After that, I added tests to Tong's SSG SSGifier so I can help test his Github actions script

What I did to my Repo

d8b2df5

First I added a .yml script that runs my script on Github actions every time I run my script.

97a8be4

Then I added a new test to test my script. Afterwards, I broke it and then fixed it to see if it works.

What I did to Tong's Repo

8c581ff

After reading Tongs contributing.MD file I set up my testing framework and started work on a new test. I decided to test to see if his markdown files were working properly.

What I learned

Using Github actions allows for a lot of automation in things like testing and code formatting. It's good to use it because if someone is contributing you can focus on their things rather than the main features.


Original Link: https://dev.to/pdr0zd/using-github-actions-to-automate-my-tests-4p4c

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To