Overview
Various tools are used by developers to deliver a successful web development project, and Continuous Integration is one of them. It is a development practice that can come handy when working in a team. CI not only makes smooth integration of code possible but it has several benefits. In this blog we will show you how to integrate CI in your project with github.
What is CI?
Continuous Integration works to integrate code provided by your team in a shared repository. Whenever developers commit code and share a merge request, the request triggers a pipeline to build, test, and validate the new code prior to merging the changes within your repository.
Why does your team need CI ?
Less manual work, more automation
- Detect errors as quickly as possible: Fix problems while fresh in developers minds
- Reduce integration problems: Smaller problems are easier to debug and solve
Integrating CI in your project
Below are some steps to implement CI in your project.
- Click on the action tab to go to the CI setup panel.
- Now you are able to a screen like the one shown below, and you have to click Set up this workflow button.
- Now, you can see the .yml page to add. Click on the Start commit button to implement CI in the project.
- We have completed adding the .yml file to implement CI for the project. You will be able to see .yml in your folder structure.
- Click on Action button to see the created CI action. On this page, we can see all Workflows of committed code and it’s CI status.
- Now we have to check whether implemented CI is working or not. For this, we have to push code or make a pull_request.
- After successfully pushing, you have to go on the Action tab in Github.
- Inside the “Test CI/CD”
- After committing code you can see if the test result is either success or a failure.
- Success
- Fail
- Success
- Inside the “Test CI/CD”
Action usage time
- When you run CI on OS, at that time, it uses some amount of your free/paid minutes.
- To check your uses of minutes
- Step 1
- Step 2
- Step 3
- Step 1
Price Details for GitHub Team & GitHub Enterprise for organization
- GitHub Team
- Github Enterprise
Conclusion
In this article, we have configured a Continuous Integration with GitHub. I hope the steps and snippets we supplied will help you on your journey around CI with GitHub.
Thanks for reading.