Skip to content

Commit abae0ed

Browse files
committed
Fix CI workflow: Update Gradle wrapper to use matrix versions
- Add step to update gradle-wrapper.properties to the matrix Gradle version - This ensures tests actually run with the specified Gradle versions (8.3, 8.14.3, 9.2.1) - Previously gradlew was using the fixed wrapper version instead of matrix versions - Update cache key to include Gradle version for better cache isolation
1 parent c1854a6 commit abae0ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,14 @@ jobs:
4040
path: |
4141
~/.gradle/caches
4242
~/.gradle/wrapper
43-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
43+
key: ${{ runner.os }}-gradle-${{ matrix.gradle-version }}-${{ hashFiles('**/*.gradle*') }}
4444
restore-keys: |
45+
${{ runner.os }}-gradle-${{ matrix.gradle-version }}-
4546
${{ runner.os }}-gradle-
4647
48+
- name: Update Gradle wrapper to ${{ matrix.gradle-version }}
49+
run: ./gradlew wrapper --gradle-version ${{ matrix.gradle-version }} --no-daemon
50+
4751
- name: Run tests with Gradle ${{ matrix.gradle-version }}
4852
run: ./gradlew clean test --no-daemon
4953

0 commit comments

Comments
 (0)