Sample Pact consumer service
This service along with Heisenberg and GustavoFring is a set of demo services for pact contract testing pipeline demonstrations.
You can use these repositories as
- Example of contract testing pipeline with Pact Broker
- Use-cases for consumer-driven-contracts development
The sample Pact consumer service based on Spring Boot with contract testing GitHub Actions CI/CD pipeline.
This repository implements the contract testing pipeline following the general documentation.
On merge to any branch it triggers the GitHub Actions pipeline that includes steps:
- build
- tests
- verify pacts as provider
- can-i-deploy
- dummy deploy
- create-version-tag
Tags strategy
- It publishes tag equal to an environment after the actual deployment to that env:
test, prod - It publishes pacts along with tags: (it differs from the provider set of tags!)
- locally:
develop - CI:
{GIT_BRANCH} - CD pipeline:
master, test, prod
- It uses version
- locally: from maven
- CI/CD pipeline: first 6 letters of a git commit hash
