Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.43 KB

README.md

File metadata and controls

35 lines (27 loc) · 1.43 KB

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. asd

On merge to any branch it triggers the GitHub Actions pipeline that includes steps:

  1. build
  2. tests
  3. verify pacts as provider
  4. can-i-deploy
  5. dummy deploy
  6. create-version-tag

Tags strategy

  1. It publishes tag equal to an environment after the actual deployment to that env: test, prod
  2. It publishes pacts along with tags: (it differs from the provider set of tags!)
  • locally: develop
  • CI: {GIT_BRANCH}
  • CD pipeline: master, test, prod
  1. It uses version
  • locally: from maven
  • CI/CD pipeline: first 6 letters of a git commit hash