Hey! Quick question. I have manually created two c...
# pactflow
n
Hey! Quick question. I have manually created two contracts one for consumer the other for a provider. The consumer contract was created through a normal js file while the provider contract was created through openapi. I am now in the process of trying to create github workflows/actions and wanted a bit of clarity on this CI/CD process. From my understanding what I need to be able to do in the workflows for say the provider side is: 1. Run can-i-deploy 2. Then if it passes publish the openapi yaml file What about versioning? Could someone highlight a more detailed step by step of what needs to be done in the workflows?
y
When you publish the provider contact you supply a version number. Can I deploy if there are no consumers will allows return yes to deploy your provider. Once deployed you record the deployment to an environment with the pact CLI. If you try and run can I deploy, prior to publishing the provider contract you will be told that the pacticipant cannot be found
n
Hmm I see. I see here: https://github.com/pactflow/example-bi-directional-provider-postman/tree/master/.github/workflows You have 4 workflows. Are they all necessary? For the provider I simply want to run can I deploy, then if it passes id like to deploy with a new version of the contract published to pactflow.
y
This one https://github.com/pactflow/example-bi-directional-provider-postman/blob/master/.github/workflows/build.yml Tests app, publishes contract and records deployment of the application if on master/main
🙏 1
❤️ 1