Making a CI/CD Pipeline for multi-git

Let's take advantage of GitHub Actions and create a CI/CD pipeline to build multi-git and run its tests.

We'll cover the following

CI/CD pipeline for multi-git

Let’s start with a basic pipeline that builds the binary and runs the unit tests. Note that running the end-to-end tests is a little bit challenging in the GitHub Actions environment, so we will leave it out for now.

GitHub Actions workflows are YAML files that are defined in your repo’s .github/workflows directory. I defined two workflows:

$ tree .github
└── workflows
    β”œβ”€β”€ on-push.yml
    └── on-tag-push.yml

1 directory, 2 files

The on-push.yml workflow is triggered every time a commit is pushed. The on-tag-push.yml workflow is called whenever a tag is pushed. Here is what it looks like on GitHub:

Get hands-on with 1200+ tech skills courses.