How to set up a complete CI/CD pipeline with GitHub Actions — from MUnit testing to deploying your Mule app to CloudHub
Lately, I’ve been writing a series of articles (and recording a series of videos) with steps to create a complete CI/CD pipeline for your Mule applications in GitHub.
Note: The initial versions of the pipeline are based on the following repository created by Archana Patel: arch-jn/github-actions-mule-cicd-demo.
Here you can find the compilation of the 5 articles and videos to set up your own pipeline. In this series, you will learn the following:
- Create a simple pipeline to deploy a Mule app to CloudHub using your Anypoint Platform’s username and password.
- Add the required configuration to make use of secured/encrypted properties.
- Include MUnit tests in the pipeline using Nexus credentials.
- Include MUnit’s minimum coverage percentage in the pipeline.
- Enable Multi-Factor Authentication (MFA) in your Anypoint Platform account using a Connected App.
Now let’s list the 5 articles/videos that you can follow to set all this up!
1 — Create a simple pipeline
In this post/video, we’ll learn how to create a simple CI/CD pipeline to deploy Mule applications from GitHub to CloudHub using GitHub Actions.
🖥️ Video:
2 — Add secured/encrypted properties
In this post/video, we’ll see the steps to create a pipeline with GitHub Actions that will decrypt your secured properties in your Mule application. If you don’t have secured properties in your application, you may not need this configuration.
🖥️ Video:
3 — Add MUnit tests
In this post/video, we’ll see the steps to create a pipeline with GitHub Actions that will run the MUnit tests you have set up in your Mule project.
📘 Article: https://www.prostdev.com/post/part-3-ci-cd-pipeline-with-mulesoft-and-github-actions-munit-testing
🖥️ Video:
4 — Add MUnit minimum coverage percentage
In this post/video, we’ll see the steps to add the minimum coverage percentage for the MUnit tests in order to pass the pipeline.
🖥️ Video:
5 — Enable MFA through a Connected App
In this post/video, we’ll learn how to set up our pipeline with a connected app, which is useful when you have multi-factor authentication activated in Anypoint Platform.
🖥️ Video: