diff --git a/.github/workflows/check-templates-consistency.yml b/.github/workflows/check-templates-consistency.yml index d293383..b3c9f4b 100644 --- a/.github/workflows/check-templates-consistency.yml +++ b/.github/workflows/check-templates-consistency.yml @@ -10,4 +10,5 @@ jobs: check-template-consistency: uses: fingerprintjs/dx-team-toolkit/.github/workflows/check-template-consistency.yml@v1 with: - generate-command: 'bash ./scripts/generate.sh' \ No newline at end of file + # Gradle 8 can't run on the runner's default JDK 25, use the preinstalled JDK 17 + generate-command: 'JAVA_HOME=$JAVA_HOME_17_X64 bash ./scripts/generate.sh' \ No newline at end of file diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index 56257cb..d147d04 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -26,6 +26,12 @@ jobs: - uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} + + - uses: actions/setup-java@v6 + with: + distribution: temurin + java-version: 17 + # Gradle will detect the JVM installation from the ubuntu-latest image and use it - run: ./gradlew runFunctionalTests -PjavaVersion=${{ matrix.java }} --stacktrace env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab3a389..60f4258 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,11 @@ jobs: name: Check source code formatting steps: - uses: actions/checkout@v7 + - uses: actions/setup-java@v6 + with: + distribution: temurin + # Gradle 8 can't run on the runner's default JDK 25 + java-version: 17 - run: ./gradlew :sdk:checkFormat :examples:checkFormat --continue test: @@ -22,6 +27,11 @@ jobs: steps: - uses: actions/checkout@v7 + - uses: actions/setup-java@v6 + with: + distribution: temurin + # Gradle 8 can't run on the runner's default JDK 25 + java-version: 17 # Gradle will detect the JVM installation from the ubuntu-latest image and use it # includes execution of unit tests - run: ./gradlew build -PjavaVersion=${{ matrix.java }} --stacktrace @@ -31,6 +41,10 @@ jobs: name: Jitpack build smoke test steps: - uses: actions/checkout@v7 + - uses: actions/setup-java@v6 + with: + distribution: temurin + java-version: 11 - run: ./gradlew clean build -PjavaVersion=11 --stacktrace env: JITPACK: true