Merge pull request #9 from YOU54F/step6 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven CI | |
on: | |
push: | |
branches: | |
- step6 | |
pull_request: | |
branches: | |
- step6 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Consumer - Pact tests | |
run: ./mvnw verify | |
working-directory: consumer | |
- name: Consumer - Move Contracts to Provider | |
run: cp consumer/target/pacts/ProductCatalogue-ProductService.json provider/pacts | |
- name: Provider - Pact verification | |
run: ./mvnw verify || true | |
working-directory: provider |