Merge pull request #1832 from pact-foundation/docs/4.1.x_override_con… #1882
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-JVM Build | |
on: | |
push: | |
branches: [ master, v4.1.x, v4.3.x, v4.4.x ] | |
pull_request: | |
branches: [ master, v4.1.x, v4.3.x, v4.4.x ] | |
jobs: | |
latest_jdk: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-latest, windows-latest, macos-latest ] | |
module: [ core, consumer, provider, pact-specification-test ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- run: ./gradlew -v | |
- name: Build with Gradle | |
if: runner.os != 'Windows' | |
run: ./gradlew -s --no-daemon -i -p ${{ matrix.module }} clean build | |
- name: Build with Gradle (Windows) | |
run: gradlew -s --no-daemon -i -p ${{ matrix.module }} clean check -x :consumer:junit:clojureTest | |
shell: cmd | |
if: runner.os == 'Windows' | |
supported_jdks: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
module: [ core, consumer, provider, pact-specification-test ] | |
jdk: [ 8 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.jdk }} | |
- run: ./gradlew -v | |
- name: Build with Gradle | |
run: ./gradlew -s --no-daemon -i -p ${{ matrix.module }} clean build |