← Projects

mulesoft-orders-api

Mule 4 · MIT · Stable

On this page

Code

When you want to see a corporate delivery flow working on a small Mule 4 application, mulesoft-orders-api, the application from the series Delivering MuleSoft applications with Azure DevOps (starting with GitFlow for MuleSoft: branch rules a pipeline can act on), shows the current flow (2.x), in GitHub Actions: main goes to TEST, a release branch to UAT and the tag to PROD, with approval. The series describes the GitFlow flow of 1.x, which the v1.0.0 tag preserves.

The flow

Delivery flow of mulesoft-orders-api in 2.x: feature/* enters main by pull request and goes to TEST; Criar release makes release/X.Y.Z, which goes to UAT, and fix/* enters it by pull request; the Release (Maven release) creates the tag vX.Y.Z, which goes to UAT, waits for approval and goes to PROD, followed by the back-merge into main.

What it does

  • Three endpoints: GET /api/health, GET /api/orders/{orderId} and POST /api/orders.
  • Versions with the maven-release-plugin and delivers to CloudHub 2.0.
  • Delivery uses the reusable workflows from github-reusable-workflows; 1.x used the templates from azure-devops-mulesoft-pipelines.
  • The API is simple on purpose; what matters are the branch rules, the release process and the pipeline.

Limit: the public workflow does not run MUnit, which requires a MuleSoft customer credential, and the deployments use an Anypoint trial that ends.

Getting started

The tests need MuleSoft’s Enterprise repository, with credentials in ~/.m2/settings.xml.

mvn clean test

Where it appears

Code for this page