Skip to content

Commit

Permalink
Merge pull request #139 from teixeira-fernando/improving-pact-flow
Browse files Browse the repository at this point in the history
setting consumer version when publishing pact
  • Loading branch information
teixeira-fernando authored Aug 28, 2023
2 parents 5bd5399 + ae3e9c5 commit eeb93cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/PR-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Shipment Publish Pacts
run: mvn -f shipment/ pact:publish -Dpact.publish.consumer.version=${GIT_COMMIT} -Dpact.publish.consumer.branchName=${{ github.HEAD_REF }} -Dpact.consumer.tags=${{ github.HEAD_REF }}
- name: Inventory Provider Tests
run: mvn -f inventory/ -Dtest=**/contract/*ProviderPact test -DfailIfNoTests=false -Dpact.provider.version=${GIT_COMMIT} -Dpact.provider.branch=${{ github.HEAD_REF }}
run: mvn -f inventory/ -Dtest=**/contract/*ProviderPact test -DfailIfNoTests=false -Dpact.provider.version=${GIT_COMMIT} -Dpact.provider.branch=${{ github.HEAD_REF }} -Dpact.provider.tag=${{ github.HEAD_REF }}
- name: Shop Provider Tests
run: mvn -f shop/ -Dtest=**/contract/*ProviderPact test -DfailIfNoTests=false -Dpact.provider.version=${GIT_COMMIT} -Dpact.provider.branch=${{ github.HEAD_REF }} -Dpact.provider.tag=${{ github.HEAD_REF }}

Expand Down
2 changes: 2 additions & 0 deletions shipment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
<pactBrokerUrl>${env.PACT_BROKER_URL}</pactBrokerUrl>
<!--suppress UnresolvedMavenProperty -->
<pactBrokerToken>${env.PACT_BROKER_TOKEN}</pactBrokerToken>
<!--suppress UnresolvedMavenProperty -->
<projectVersion>${env.GIT_COMMIT}</projectVersion>
<trimSnapshot>true</trimSnapshot>
</configuration>
</plugin>
Expand Down
2 changes: 2 additions & 0 deletions shop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@
<pactBrokerUrl>${env.PACT_BROKER_URL}</pactBrokerUrl>
<!--suppress UnresolvedMavenProperty -->
<pactBrokerToken>${env.PACT_BROKER_TOKEN}</pactBrokerToken>
<!--suppress UnresolvedMavenProperty -->
<projectVersion>${env.GIT_COMMIT}</projectVersion>
<trimSnapshot>true</trimSnapshot>
</configuration>
</plugin>
Expand Down

0 comments on commit eeb93cf

Please sign in to comment.