mirror of
https://github.com/gradle/actions.git
synced 2025-08-18 06:31:28 +08:00
Run Gradle release candidate tests with JDK 17 (#690)
### Issue Since Gradle 9, JDK 17 is the minimal version to run Gradle ([ref](https://gradle.org/whats-new/gradle-9/#java-17-is-the-minimum-version-to-run-gradle)) Some of the GH workflows in this repository are failing ([example](https://github.com/gradle/actions/actions/runs/16417315636/job/46386404481#step:9:35)) when running against the release candidate (being Gradle 9) ### Fix Create a dedicated provision-gradle job with JDK 17 instead of the default 11. This change is a minimalistic way to fix the issue.
This commit is contained in:
commit
69c4e313e3
@ -52,13 +52,6 @@ jobs:
|
||||
- name: Test uses Gradle v7.1.1
|
||||
working-directory: .github/workflow-samples/no-wrapper
|
||||
run: gradle help "-DgradleVersionCheck=7.1.1"
|
||||
- name: Setup Gradle with release-candidate
|
||||
uses: ./setup-gradle
|
||||
with:
|
||||
gradle-version: release-candidate
|
||||
- name: Test use release-candidate
|
||||
working-directory: .github/workflow-samples/no-wrapper
|
||||
run: gradle help
|
||||
- name: Setup Gradle with current
|
||||
id: gradle-current
|
||||
uses: ./setup-gradle
|
||||
@ -73,6 +66,28 @@ jobs:
|
||||
with:
|
||||
script: |
|
||||
core.setFailed('Gradle version parameter not set correctly: value was "${{ steps.gradle-current.outputs.gradle-version }}"')
|
||||
|
||||
provision-gradle-with-jdk-17:
|
||||
strategy:
|
||||
max-parallel: 1
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: ${{fromJSON(inputs.runner-os)}}
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- name: Initialize integ-test
|
||||
uses: ./.github/actions/init-integ-test
|
||||
with:
|
||||
java-version: '17'
|
||||
- name: Setup Gradle with release-candidate
|
||||
uses: ./setup-gradle
|
||||
with:
|
||||
gradle-version: release-candidate
|
||||
- name: Test use release-candidate
|
||||
working-directory: .github/workflow-samples/no-wrapper
|
||||
run: gradle help
|
||||
|
||||
provision-gradle-version:
|
||||
strategy:
|
||||
|
Loading…
x
Reference in New Issue
Block a user