chore: Update pact_consumer #1054
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: Pact Plugin Driver (Gradle) | |
on: | |
- push | |
- pull_request | |
jobs: | |
latest_jdk: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-latest, windows-latest, macos-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 19 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 19 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build plugin driver | |
run: ./gradlew -s --no-daemon -i publishToMavenLocal | |
working-directory: drivers/jvm | |
- name: Install plugin cli | |
run: scripts/install-plugin-cli.sh | |
shell: bash | |
- name: Install Protobuf plugin | |
run: ~/bin/pact-plugin-cli -y install protobuf | |
shell: bash | |
- name: Run plugin driver tests | |
run: ./gradlew -s --no-daemon -i check | |
working-directory: drivers/jvm | |
- name: Publish driver Pact file | |
run: GIT_SHA=$GITHUB_SHA ./gradlew --no-daemon pactPublish -PpactBrokerToken=${{ secrets.PACTFLOW_TOKEN }} | |
working-directory: drivers/jvm | |
if: runner.os == 'Linux' | |
supported_jdks: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
jdk: [ 11, 16, 18 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.jdk }} | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build plugin driver | |
run: ./gradlew -s --no-daemon -i publishToMavenLocal | |
working-directory: drivers/jvm | |
- name: Install plugin cli | |
run: scripts/install-plugin-cli.sh | |
shell: bash | |
- name: Install Protobuf plugin | |
run: ~/bin/pact-plugin-cli -y install protobuf | |
shell: bash | |
- name: Run plugin driver tests | |
run: ./gradlew -s --no-daemon -i check | |
working-directory: drivers/jvm |