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:
(π)/multi-git/
$ tree .github
.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 1400+ tech skills courses.