Skip to content

Commit

Permalink
Improve test coverage
Browse files Browse the repository at this point in the history
- Avoid testing all intermediate 8.x releases
- Test latest Gradle with different JVMs
  • Loading branch information
bigdaz committed Jun 27, 2024
1 parent 219e762 commit c71aa7b
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
strategy:
fail-fast: false
matrix:
# Test earliest and latest supported version of 5.x, 6.x and 7.x, as well as all patched minor versions of 8.x
# Test earliest and latest supported version of 5.x, 6.x, 7.x, and 8.x
# Latest 8.x is tested in 'quick-check' job using the wrapper
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"]
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"]
runs-on: ubuntu-latest
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
Expand All @@ -52,6 +52,30 @@ jobs:
- name: Execute Gradle Build
run: ./gradlew -S build -DtestGradleVersion=${{ matrix.gradle-version }}

test-jvm-version:
needs: quick-check
strategy:
fail-fast: false
matrix:
jvm-version: [ "8", "11", "17", "21", "22"]
runs-on: ubuntu-latest
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jvm-version }}
distribution: temurin

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Execute Gradle Build
run: ./gradlew -S build -DtestGradleVersion=8.8

self-test:
needs: quick-check
runs-on: ubuntu-latest
Expand Down

0 comments on commit c71aa7b

Please sign in to comment.