Posts

Showing posts with the label Continuous Integration

Clone github repository on the shared host for Continuous Integration

First follow the article on   Creating Github workflow  using Github Actions and then you can use the following steps on setting up your repo on the shared host This Article demonstrates how to set up a private repository on your local host. This allows the user to use cPanel as an automatic deployment location for their project that can run PHP, Ruby, Node.js™, or other desktop applications. Important: This tutorial uses GitHub as an example host for a private repository. However, most of the steps in this tutorial are similar to the steps for any other private repository host. The steps in this tutorial require the  Shell Access  setting in cPanel & WHM version 70 or earlier or the  Shell Access & Terminal  setting in cPanel & WHM version 72 or later. Because they require SSH access, you  must  perform additional steps in order to clone a privately-hosted remote repository. This feature enforces several restrictions on clone URLs, and it verifies the remote host’s public

Getting Started with Continuous Integration

Image
  Continuous integration (CI) is a practice where a team of developers integrate their code early and often to the main branch or code repository. The goal is to reduce the risk of seeing “integration hell” by waiting for the end of a project or a sprint to merge the work of all developers. One of the primary benefits of adopting CI is that it will save you time during your development cycle by identifying and addressing conflicts early. It’s also a great way to reduce the amount of time spent on fixing bugs and regression by putting more emphasis on having a good test suite. Finally, it helps share a better understanding of the codebase and the features that you’re developing for your customers. The first step on your journey to continuous integration: setting up automated testing. Getting started with automated testing Understanding the different types of tests To get the full benefits of CI, you will need to automate your tests to be able to run them for every change that is made to

Github Actions Continuous Integration for a django and Postgresql Web App

Image
  tl;dr –  Here’s a working example of a Django project. We use GitHub extensively – for client projects, for internal projects & for open source. It was a matter of time for GitHub to roll their own CI  & catch up with Bitbucket Pipelines & GitLab CI. Having a CI is integral part of our software development process  – build & lint on every commit, deploy to staging & production from specific branches. We use either CircleCI or CodeShip, depending on the project & the needs. With GitHub Actions now being generally available for everyone, I was itching to give it a go. The final aim of this article is to provide you with a working Django + Postgres example,  share my struggles during the setup. I’ll go step by step and include some of the errors that you might encounter, while trying to set things up. Terminology As with every other CI, I made the mistake to jump right in, start pasting yml configuration around & hoping for the best. Only after reading some m