DEV Community

P-DR0ZD
P-DR0ZD

Posted on • Edited on

3

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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay