DEV Community

Ririio
Ririio

Posted on

2

Adding my first Continuous Integration (CI)

When working with repositories, especially those that are written by professionals, I always get confused what the "task" is all about during a pull request. I just shrugged it off as some high level github functionality that I won't be learning for a while. However, it turns out it's very simple to set up. Having a test also helps with it, because it esnures that the user requesting to pull request understand whether their code will cause a problem in the future.

Setting up a CI

Setting up a Continous Integration is very simple. You just need to create a YAML called node.js.yml file, under the directory .github/workflows. Once these are done, simply follow the code provided from the github document, and change the value depending on what you want.

Working with a different repository

My partner's repository has always been fairly difficult to understand, due to his years of experience with coding. It took me a fairly long time to write a test for his code, because majority of it has already been touched upon. He was using snapshots which I found fairly helpful with these kinds of test.

With how much time I spent creating my CI, and seeing its benefits, I will now integrate this to my repository after I finish writing my test files.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

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

👋 Kindness is contagious

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

Okay