Skip to content

Commit

Permalink
bump actions/setup-java to v3
Browse files Browse the repository at this point in the history
The major version change from actions/setup-java v1 to v3 includes breaking
changes due to an additional property (distribution) that is now required.

Multiple distributions exist, Zulu has the largest range of available versions
available.
  • Loading branch information
Okeanos authored and rholshausen committed Nov 24, 2022
1 parent b937ccb commit d1afb8e
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Pact-JVM Build

on:
push:
branches: [ master, v4.1.x, v4.2.x, v5.0.x ]
branches: [ master, v4.1.x, v4.3.x, v4.4.x ]
pull_request:
branches: [ master, v4.1.x, v4.2.x, v5.0.x ]
branches: [ master, v4.1.x, v4.3.x, v4.4.x ]

jobs:
latest_jdk:
Expand All @@ -16,8 +16,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 12
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 12
- name: Cache Gradle packages
uses: actions/cache@v2
Expand All @@ -28,6 +29,11 @@ jobs:
- run: ./gradlew -v
- name: Build with Gradle
run: ./gradlew -s --no-daemon -i -p ${{ matrix.module }} build
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: "**/test-results/**/*.xml"

supported_jdks:
runs-on: ubuntu-latest
Expand All @@ -38,8 +44,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: ${{ matrix.jdk }}
- name: Cache Gradle packages
uses: actions/cache@v2
Expand All @@ -48,6 +55,10 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- run: ./gradlew -v
- run: env
- name: Build with Gradle
run: ./gradlew -s --no-daemon -i -p ${{ matrix.module }} build
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: "**/test-results/**/*.xml"

0 comments on commit d1afb8e

Please sign in to comment.