Skip to content

Commit 1aa17f2

Browse files
authored
Improve test coverage matrix (#144)
- Avoid testing all intermediate 8.x releases - Test latest Gradle with different JVMs
1 parent 5209723 commit 1aa17f2

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

.github/workflows/gradle.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
# Test earliest and latest supported version of 5.x, 6.x and 7.x, as well as all patched minor versions of 8.x
34+
# Test earliest and latest supported version of 5.x, 6.x, 7.x, and 8.x
3535
# Latest 8.x is tested in 'quick-check' job using the wrapper
36-
gradle-version: [ "5.2.1", "5.6.4", "6.0.1", "6.9.4", "7.1.1", "7.6.4", "8.0.2", "8.1.1", "8.2.1", "8.3", "8.4", "8.5", "8.6"]
36+
gradle-version: [ "5.2.1", "5.6.4", "6.0.1", "6.9.4", "7.1.1", "7.6.4", "8.0.2", "8.8"]
3737
runs-on: ubuntu-latest
3838
env:
3939
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
@@ -52,6 +52,30 @@ jobs:
5252
- name: Execute Gradle Build
5353
run: ./gradlew -S build -DtestGradleVersion=${{ matrix.gradle-version }}
5454

55+
test-jvm-version:
56+
needs: quick-check
57+
strategy:
58+
fail-fast: false
59+
matrix:
60+
jvm-version: [ "8", "11", "17", "21", "22"]
61+
runs-on: ubuntu-latest
62+
env:
63+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
64+
steps:
65+
- uses: actions/checkout@v4
66+
67+
- name: Set up JDK
68+
uses: actions/setup-java@v4
69+
with:
70+
java-version: ${{ matrix.jvm-version }}
71+
distribution: temurin
72+
73+
- name: Setup Gradle
74+
uses: gradle/actions/setup-gradle@v3
75+
76+
- name: Execute Gradle Build
77+
run: ./gradlew -S build -DtestGradleVersion=8.8
78+
5579
self-test:
5680
needs: quick-check
5781
runs-on: ubuntu-latest

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionSha256Sum=a4b4158601f8636cdeeab09bd76afb640030bb5b144aafe261a5e8af027dc612
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.

0 commit comments

Comments
 (0)